mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-11-30 08:59:59 +00:00
19 lines
491 B
TypeScript
19 lines
491 B
TypeScript
import { defineConfig, moduleTools } from '@modern-js/module-tools';
|
|
|
|
export default defineConfig({
|
|
plugins: [moduleTools()],
|
|
buildPreset: 'npm-library',
|
|
buildConfig: {
|
|
platform: 'node',
|
|
input: {
|
|
index: 'src/index.ts',
|
|
debug: 'src/debug/index.ts',
|
|
puppeteer: 'src/puppeteer/index.ts',
|
|
playwright: 'src/playwright/index.ts',
|
|
'playwright-report': './src/playwright/reporter/index.ts',
|
|
},
|
|
target: 'es2017',
|
|
externals: ['sharp'],
|
|
},
|
|
});
|