forked from github/dataease
26 lines
492 B
TypeScript
26 lines
492 B
TypeScript
import { pathResolve } from './common'
|
|
export default {
|
|
build: {
|
|
//压缩
|
|
sourcemap: false,
|
|
minify: false,
|
|
rollupOptions: {
|
|
//忽略打包vue文件
|
|
external: ['vue'],
|
|
output: {
|
|
globals: {
|
|
vue: 'Vue'
|
|
},
|
|
dir: 'lib',
|
|
entryFileNames: '[name].mjs',
|
|
// preserveModules: true,
|
|
exports: 'named'
|
|
}
|
|
},
|
|
lib: {
|
|
entry: pathResolve('src/pages/lib/main.ts'),
|
|
formats: ['es']
|
|
}
|
|
}
|
|
}
|