mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
25 lines
526 B
TypeScript
25 lines
526 B
TypeScript
import { defineBuildConfig } from 'unbuild'
|
|
|
|
export default defineBuildConfig({
|
|
entries: [
|
|
// Vue support
|
|
'./src/unplugin',
|
|
'./src/vite'
|
|
],
|
|
rollup: {
|
|
replace: {
|
|
delimiters: ['', ''],
|
|
values: {
|
|
// Used in development to import directly from theme
|
|
'process.argv.includes(\'--uiDev\')': 'false'
|
|
}
|
|
}
|
|
},
|
|
hooks: {
|
|
'mkdist:entry:options'(ctx, entry, options) {
|
|
options.addRelativeDeclarationExtensions = false
|
|
}
|
|
},
|
|
externals: ['#build/ui', 'vite']
|
|
})
|