midscene/packages/web-integration/modern.config.ts
Zhou xiao be3725647d
fix(web): fix sharp deps (#72)
* fix(web): fix sharp deps

* chore: optimize sharp deps
2024-08-23 19:29:45 +08:00

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'],
},
});