midscene/packages/web-integration/modern.config.ts
Zhou xiao eafa5bfa20
feat(cache): The cache is generalized to support puppeteers and mobile terminals (#85)
* feat(cache): The cache is generalized to support Puppeteers and mobile terminals

* chore: update cache test

* chore: update cache test

* chore: update cache test

* docs: update cache doc

* chore: update ai test command

* chore: update ai test command

* chore: update ai test command

* chore: optimize cache logic

* chore: update get dir path logic

* chore: update get dir path logic
2024-09-06 17:19:35 +08:00

20 lines
548 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',
appium: 'src/appium/index.ts',
'playwright-report': './src/playwright/reporter/index.ts',
},
target: 'es2017',
externals: ['@midscene/core', 'node:fs'],
},
});