midscene/packages/web-integration/modern.inspect.config.ts
Zhou xiao d2a5dbecba
refactor(shared): migrate sharp to jimp and migrate common img logci to shared lib (#74)
* fix(web): fix sharp deps

* chore: optimize sharp deps

* refactor(extract): migrate sharp to jimp

* refactor: migrate img common logic to shared lib

* chore: merge main branch

* chore: merge main branch

* chore: merge main branch

* chore: delete unless code

* chore: optimize code

* chore: optimize ai test branch trigger method

* chore: optimize ai test branch trigger method

* chore: optimize trigger method
2024-08-26 18:50:33 +08:00

23 lines
613 B
TypeScript

import { defineConfig, moduleTools } from '@modern-js/module-tools';
// It was split into two configuration files because of a bug in the build config array
export default defineConfig({
plugins: [moduleTools()],
buildConfig: {
buildType: 'bundle',
format: 'iife',
dts: false,
input: {
htmlElement: 'src/extractor/index.ts',
htmlElementDebug: 'src/extractor/debug.ts',
},
autoExternal: false,
outDir: 'dist/script',
esbuildOptions: (options) => {
options.globalName = 'midscene_element_inspector';
return options;
},
target: 'es2017',
},
});