Nuxt/packages/schema/build.config.ts

34 lines
593 B
TypeScript
Raw Normal View History

import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
declaration: true,
emitCJS: false,
entries: [
{
input: 'src/config/index',
outDir: 'schema',
name: 'config',
builder: 'untyped',
defaults: {
rootDir: '/project/'
}
},
'src/index'
],
externals: [
// Type imports
'nuxt3',
'vue-meta',
'vue',
'hookable',
'webpack',
'pkg-types',
'webpack-bundle-analyzer',
'rollup-plugin-visualizer',
'vite',
// Implicit
'@vue/compiler-core',
'@vue/shared ',
]
})