midscene/packages/web-integration/modern.inspect.config.ts
Zhou xiao e1ae31ac17
workflow(ci): optimize biome lint (#31)
* workflow(ci): format code

* workflow(ci): format code

* workflow(ci): format code

* workflow(ci): format code

* workflow(ci): format code
2024-08-04 08:28:19 +08:00

21 lines
552 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()],
buildPreset: 'npm-library',
buildConfig: {
buildType: 'bundle',
format: 'iife',
input: {
htmlElement: 'src/extractor/index.ts',
},
outDir: 'dist/script',
esbuildOptions: (options) => {
options.globalName = 'midscene_element_inspector';
return options;
},
target: 'es2017',
},
});