2024-08-04 08:28:19 +08:00
|
|
|
import { defineConfig, moduleTools } from '@modern-js/module-tools';
|
2024-07-23 16:25:11 +08:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [moduleTools()],
|
|
|
|
buildPreset: 'npm-library',
|
|
|
|
buildConfig: {
|
2024-10-28 11:04:40 +08:00
|
|
|
format: 'umd',
|
2024-07-23 16:25:11 +08:00
|
|
|
input: {
|
|
|
|
index: 'src/index.ts',
|
2024-08-23 15:57:39 +08:00
|
|
|
debug: 'src/debug/index.ts',
|
|
|
|
puppeteer: 'src/puppeteer/index.ts',
|
|
|
|
playwright: 'src/playwright/index.ts',
|
2024-10-21 16:30:07 +08:00
|
|
|
playground: 'src/playground/index.ts',
|
|
|
|
'midscene-playground': 'src/playground/bin.ts',
|
2024-09-05 20:05:19 +08:00
|
|
|
appium: 'src/appium/index.ts',
|
2024-07-28 17:24:09 +08:00
|
|
|
'playwright-report': './src/playwright/reporter/index.ts',
|
2024-07-23 16:25:11 +08:00
|
|
|
},
|
2024-10-28 11:04:40 +08:00
|
|
|
target: 'es6',
|
|
|
|
externals: ['@midscene/core', '@midscene/shared'],
|
2024-07-23 16:25:11 +08:00
|
|
|
},
|
|
|
|
});
|