-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.config.ts
26 lines (25 loc) · 933 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
import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
entries: [
{ input: 'src/index', name: 'index' },
{ input: 'src/config', name: 'config' },
{ input: 'src/presets/index', name: 'presets' },
{ input: 'src/presets/minimal', name: 'presets/minimal' },
{ input: 'src/presets/minimal-2023', name: 'presets/minimal-2023' },
{ input: 'src/api/index', name: 'api' },
{ input: 'src/api/instructions', name: 'api/instructions' },
{ input: 'src/api/generate-assets', name: 'api/generate-assets' },
{ input: 'src/api/generate-html-markup', name: 'api/generate-html-markup' },
{ input: 'src/api/generate-manifest-icons-entry', name: 'api/generate-manifest-icons-entry' },
{ input: 'src/cli', name: 'cli' },
],
clean: true,
declaration: true,
rollup: {
emitCJS: true,
inlineDependencies: true,
},
replace: {
'import.meta.vitest': 'false',
},
})