2021-11-21 16:14:46 +00:00
|
|
|
import { defineBuildConfig } from 'unbuild'
|
|
|
|
|
|
|
|
export default defineBuildConfig({
|
|
|
|
declaration: true,
|
|
|
|
entries: [
|
|
|
|
{
|
|
|
|
input: 'src/config/index',
|
|
|
|
outDir: 'schema',
|
|
|
|
name: 'config',
|
|
|
|
builder: 'untyped',
|
|
|
|
defaults: {
|
2022-02-25 19:11:01 +00:00
|
|
|
rootDir: '/<rootDir>/',
|
|
|
|
vite: {
|
|
|
|
base: '/'
|
|
|
|
}
|
2021-11-21 16:14:46 +00:00
|
|
|
}
|
|
|
|
},
|
2022-10-27 10:36:37 +00:00
|
|
|
'src/index',
|
2021-11-21 16:14:46 +00:00
|
|
|
],
|
|
|
|
externals: [
|
|
|
|
// Type imports
|
2022-03-16 12:13:50 +00:00
|
|
|
'vue-router',
|
2022-08-16 11:19:39 +00:00
|
|
|
'vue-bundle-renderer',
|
2022-11-15 16:26:38 +00:00
|
|
|
'@unhead/schema',
|
2021-11-21 16:14:46 +00:00
|
|
|
'vue',
|
|
|
|
'hookable',
|
2022-04-07 11:28:04 +00:00
|
|
|
'nitropack',
|
2021-11-21 16:14:46 +00:00
|
|
|
'webpack',
|
|
|
|
'webpack-bundle-analyzer',
|
|
|
|
'rollup-plugin-visualizer',
|
|
|
|
'vite',
|
2022-07-29 10:57:45 +00:00
|
|
|
'@vitejs/plugin-vue',
|
2023-02-16 12:45:08 +00:00
|
|
|
'@vitejs/plugin-vue-jsx',
|
2022-02-25 19:11:01 +00:00
|
|
|
'mini-css-extract-plugin',
|
|
|
|
'terser-webpack-plugin',
|
|
|
|
'css-minimizer-webpack-plugin',
|
2022-09-07 08:35:21 +00:00
|
|
|
'h3',
|
2022-02-25 19:11:01 +00:00
|
|
|
'webpack-hot-middleware',
|
|
|
|
'postcss',
|
2022-02-16 21:34:32 +00:00
|
|
|
'consola',
|
2022-02-28 16:11:46 +00:00
|
|
|
'ignore',
|
2021-11-21 16:14:46 +00:00
|
|
|
// Implicit
|
|
|
|
'@vue/compiler-core',
|
2022-08-26 15:47:29 +00:00
|
|
|
'@vue/shared',
|
|
|
|
'untyped'
|
2021-11-21 16:14:46 +00:00
|
|
|
]
|
|
|
|
})
|