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: {
|
|
|
|
platform: 'node',
|
|
|
|
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-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
|
|
|
},
|
|
|
|
target: 'es2017',
|
|
|
|
},
|
|
|
|
});
|