midscene/packages/web-integration/modern.config.ts
yuyutaotao f8507efd50
chore: some minor bug fixes (#146)
* feat: always use latest process.env as fallback

---------

Co-authored-by: zhouxiao.shaw <zhouxiao.shaw@bytedance.com>
2024-11-07 11:29:50 +08:00

24 lines
748 B
TypeScript

import { defineConfig, moduleTools } from '@modern-js/module-tools';
export default defineConfig({
plugins: [moduleTools()],
buildPreset: 'npm-library',
buildConfig: {
format: 'cjs',
input: {
index: 'src/index.ts',
utils: 'src/common/utils.ts',
debug: 'src/debug/index.ts',
puppeteer: 'src/puppeteer/index.ts',
playwright: 'src/playwright/index.ts',
playground: 'src/playground/index.ts',
'midscene-playground': 'src/playground/bin.ts',
appium: 'src/appium/index.ts',
'playwright-report': './src/playwright/reporter/index.ts',
'chrome-extension': 'src/chrome-extension/index.ts',
},
target: 'es2018',
externals: ['@midscene/core', '@midscene/shared'],
},
});