mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
373d015ae7
Co-authored-by: Daniel Roe <daniel@roe.dev>
67 lines
1.3 KiB
TypeScript
67 lines
1.3 KiB
TypeScript
import { defineBuildConfig } from 'unbuild'
|
|
|
|
export default defineBuildConfig({
|
|
declaration: true,
|
|
entries: [
|
|
{
|
|
input: 'src/config/index',
|
|
outDir: 'schema',
|
|
name: 'config',
|
|
builder: 'untyped',
|
|
defaults: {
|
|
srcDir: '/<srcDir>/',
|
|
workspaceDir: '/<workspaceDir>/',
|
|
rootDir: '/<rootDir>/',
|
|
vite: {
|
|
base: '/',
|
|
},
|
|
},
|
|
},
|
|
'src/index',
|
|
'src/builder-env',
|
|
],
|
|
externals: [
|
|
// Type imports
|
|
'#app/components/nuxt-link',
|
|
'cssnano',
|
|
'autoprefixer',
|
|
'ofetch',
|
|
'vue-router',
|
|
'@nuxt/telemetry',
|
|
'vue-bundle-renderer',
|
|
'@unhead/schema',
|
|
'vue',
|
|
'unctx',
|
|
'hookable',
|
|
'nitro',
|
|
'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',
|
|
'c12',
|
|
'unenv',
|
|
'@vue/language-core',
|
|
// Implicit
|
|
'@vue/compiler-core',
|
|
'@vue/compiler-sfc',
|
|
'@vue/shared',
|
|
'untyped',
|
|
],
|
|
})
|