mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
25 lines
587 B
TypeScript
25 lines
587 B
TypeScript
import { defineBuildConfig } from 'unbuild'
|
|
|
|
export default defineBuildConfig({
|
|
entries: [
|
|
// Include devtools runtime files
|
|
{ input: './src/devtools/runtime', builder: 'mkdist', outDir: 'dist/devtools/runtime' },
|
|
// Vue support
|
|
'./src/unplugin',
|
|
'./src/vite'
|
|
],
|
|
rollup: {
|
|
emitCJS: true
|
|
},
|
|
replace: {
|
|
'process.env.DEV': 'false',
|
|
'process.env.NUXT_UI_DEVTOOLS_LOCAL': 'false'
|
|
},
|
|
hooks: {
|
|
'mkdist:entry:options'(ctx, entry, options) {
|
|
options.addRelativeDeclarationExtensions = false
|
|
}
|
|
},
|
|
externals: ['#build/ui', 'vite']
|
|
})
|