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: {
|
2024-02-13 11:19:25 +00:00
|
|
|
srcDir: '/<srcDir>/',
|
|
|
|
workspaceDir: '/<workspaceDir>/',
|
2022-02-25 19:11:01 +00:00
|
|
|
rootDir: '/<rootDir>/',
|
|
|
|
vite: {
|
2024-04-05 18:08:32 +00:00
|
|
|
base: '/',
|
|
|
|
},
|
|
|
|
},
|
2021-11-21 16:14:46 +00:00
|
|
|
},
|
2022-10-27 10:36:37 +00:00
|
|
|
'src/index',
|
2024-04-05 18:08:32 +00:00
|
|
|
'src/builder-env',
|
2021-11-21 16:14:46 +00:00
|
|
|
],
|
|
|
|
externals: [
|
|
|
|
// Type imports
|
2023-10-18 12:43:42 +00:00
|
|
|
'#app/components/nuxt-link',
|
2023-10-18 14:25:25 +00:00
|
|
|
'ofetch',
|
2022-03-16 12:13:50 +00:00
|
|
|
'vue-router',
|
2023-04-19 21:02:15 +00:00
|
|
|
'@nuxt/telemetry',
|
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',
|
2023-04-10 21:57:13 +00:00
|
|
|
'unctx',
|
2021-11-21 16:14:46 +00:00
|
|
|
'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',
|
|
|
|
'css-minimizer-webpack-plugin',
|
|
|
|
'webpack-dev-middleware',
|
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',
|
2023-06-04 22:07:53 +00:00
|
|
|
'vue-loader',
|
2023-06-07 12:50:12 +00:00
|
|
|
'esbuild-loader',
|
2023-06-08 21:50:29 +00:00
|
|
|
'file-loader',
|
|
|
|
'pug',
|
|
|
|
'sass-loader',
|
2023-10-19 14:20:11 +00:00
|
|
|
'c12',
|
2024-01-18 16:09:27 +00:00
|
|
|
'unenv',
|
2024-02-27 15:31:46 +00:00
|
|
|
'@vue/language-core',
|
2021-11-21 16:14:46 +00:00
|
|
|
// Implicit
|
|
|
|
'@vue/compiler-core',
|
2024-04-03 09:16:15 +00:00
|
|
|
'@vue/compiler-sfc',
|
2022-08-26 15:47:29 +00:00
|
|
|
'@vue/shared',
|
2024-04-05 18:08:32 +00:00
|
|
|
'untyped',
|
|
|
|
],
|
2021-11-21 16:14:46 +00:00
|
|
|
})
|