mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-11-28 08:02:04 +00:00
* feat: always use latest process.env as fallback --------- Co-authored-by: zhouxiao.shaw <zhouxiao.shaw@bytedance.com>
24 lines
748 B
TypeScript
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'],
|
|
},
|
|
});
|