1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| 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']
| }
| }
| }
|
|