mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
56 lines
1.0 KiB
TypeScript
56 lines
1.0 KiB
TypeScript
import { defineBuildConfig } from 'unbuild'
|
|
|
|
export default defineBuildConfig({
|
|
declaration: true,
|
|
entries: [
|
|
{
|
|
input: 'src/config/index',
|
|
outDir: 'schema',
|
|
name: 'config',
|
|
builder: 'untyped',
|
|
defaults: {
|
|
rootDir: '/<rootDir>/',
|
|
vite: {
|
|
base: '/'
|
|
}
|
|
}
|
|
},
|
|
'src/index',
|
|
'src/builder-env'
|
|
],
|
|
externals: [
|
|
// Type imports
|
|
'vue-router',
|
|
'@nuxt/telemetry',
|
|
'vue-bundle-renderer',
|
|
'@unhead/schema',
|
|
'vue',
|
|
'unctx',
|
|
'hookable',
|
|
'nitropack',
|
|
'webpack',
|
|
'webpack-bundle-analyzer',
|
|
'rollup-plugin-visualizer',
|
|
'vite',
|
|
'@vitejs/plugin-vue',
|
|
'@vitejs/plugin-vue-jsx',
|
|
'mini-css-extract-plugin',
|
|
'css-minimizer-webpack-plugin',
|
|
'webpack-dev-middleware',
|
|
'h3',
|
|
'webpack-hot-middleware',
|
|
'postcss',
|
|
'consola',
|
|
'ignore',
|
|
'vue-loader',
|
|
'esbuild-loader',
|
|
'file-loader',
|
|
'pug',
|
|
'sass-loader',
|
|
// Implicit
|
|
'@vue/compiler-core',
|
|
'@vue/shared',
|
|
'untyped'
|
|
]
|
|
})
|