-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.config.ts
26 lines (25 loc) · 1.05 KB
/
build.config.ts
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
26
import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
declaration: true,
rollup: {
emitCJS: true,
cjsBridge: true,
esbuild: {
target: 'es2019'
}
},
clean: true,
entries: [
'src/plugin',
// loaders aren't part of the plugin entry
{ input: 'src/runtime/client', name: 'runtime/client', declaration: false, format: 'cjs', ext: 'cjs' },
{ input: 'src/loaders/dev-tools', name: 'loaders/dev-tools', declaration: false, format: 'cjs', ext: 'cjs' },
{ input: 'src/loaders/virtual-module', name: 'loaders/virtual-module', declaration: false, format: 'cjs', ext: 'cjs' },
{ input: 'src/loaders/windicss-css', name: 'loaders/windicss-css', declaration: false, format: 'cjs', ext: 'cjs' },
{ input: 'src/loaders/windicss-style-pitcher', name: 'loaders/windicss-style-pitcher', declaration: false, format: 'cjs', ext: 'cjs' },
{ input: 'src/loaders/windicss-template', name: 'loaders/windicss-template', declaration: false, format: 'cjs', ext: 'cjs' },
],
externals: [
'webpack',
],
})