-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.config.ts
More file actions
33 lines (32 loc) · 983 Bytes
/
build.config.ts
File metadata and controls
33 lines (32 loc) · 983 Bytes
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
import { defineBuildConfig } from 'unbuild'
import { resolve } from 'node:path'
/**
* Build configuration for the Daytime library.
* @description Configures build settings, aliases, and output options.
*/
export default defineBuildConfig({
/** The entry points for the build */
entries: ['src/Main'],
/** Whether to generate declaration files */
declaration: true,
/** Whether to clean the build output */
clean: true,
/** Aliases for the build */
alias: {
'@app': resolve(__dirname, 'src'),
'@locale': resolve(__dirname, 'src/locale'),
'@helpers': resolve(__dirname, 'src/helpers'),
'@utils': resolve(__dirname, 'src/utils')
},
/** Rollup configuration for the build */
rollup: {
/** Whether to emit CommonJS modules */
emitCJS: true,
/** Whether to inline dependencies */
inlineDependencies: true
},
/** Whether to generate source maps */
sourcemap: false,
/** Whether to fail on warnings */
failOnWarn: false
})