-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.config.ts
34 lines (32 loc) · 899 Bytes
/
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
27
28
29
30
31
32
33
34
import { defineBuildConfig } from 'unbuild'
import sharedConfig from './shared.config'
export default defineBuildConfig({
// We can't rely automated config because: https://github.com/unjs/unbuild/issues/339
entries: [
// normal bundles
'src/unplugin/index',
'src/unplugin/vite',
'src/unplugin/webpack',
'src/unplugin/rollup',
'src/unplugin/esbuild',
'src/unplugin/nuxt',
'src/types',
// file-to-file (please use .mts for all of your files), currently mkdist uncontrollably generates .d.ts and .d.mts based on the original extension: .ts or .mts
// {
// builder: 'mkdist',
// input: './src/',
// esbuild: { minify: true },
// },
],
declaration: 'node16',
clean: true,
rollup: {
emitCJS: true,
inlineDependencies: true,
esbuild: {
target: 'esnext',
// minify: true,
},
},
...sharedConfig,
})