mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-11-25 14:37:19 +00:00
* 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
23 lines
613 B
TypeScript
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',
|
|
},
|
|
});
|