mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 01:53:55 +00:00
11626eea4f
Co-authored-by: Daniel Roe <daniel@roe.dev>
45 lines
844 B
TypeScript
45 lines
844 B
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'
|
|
],
|
|
externals: [
|
|
// Type imports
|
|
'vue-meta',
|
|
'vue-router',
|
|
'vue',
|
|
'hookable',
|
|
'nitropack',
|
|
'webpack',
|
|
'pkg-types',
|
|
'webpack-bundle-analyzer',
|
|
'rollup-plugin-visualizer',
|
|
'vite',
|
|
'mini-css-extract-plugin',
|
|
'terser-webpack-plugin',
|
|
'css-minimizer-webpack-plugin',
|
|
'webpack-dev-middleware',
|
|
'webpack-hot-middleware',
|
|
'postcss',
|
|
'consola',
|
|
'ignore',
|
|
// Implicit
|
|
'@vue/compiler-core',
|
|
'@vue/shared'
|
|
]
|
|
})
|