mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-07-09 18:11:33 +00:00
26 lines
584 B
TypeScript
26 lines
584 B
TypeScript
import { defineConfig, moduleTools } from '@modern-js/module-tools';
|
|
import { version } from './package.json';
|
|
|
|
export default defineConfig({
|
|
plugins: [moduleTools()],
|
|
buildPreset: 'npm-library',
|
|
buildConfig: {
|
|
input: {
|
|
index: 'src/index.ts',
|
|
utils: 'src/utils.ts',
|
|
tree: 'src/tree.ts',
|
|
'ai-model': 'src/ai-model/index.ts',
|
|
},
|
|
externals: ['langsmith', '@midscene/shared'],
|
|
target: 'es2020',
|
|
define: {
|
|
__VERSION__: version,
|
|
},
|
|
splitting: true,
|
|
sourceMap: true,
|
|
dts: {
|
|
respectExternal: true,
|
|
},
|
|
},
|
|
});
|