Nuxt/packages/nuxt3/build.config.ts

28 lines
571 B
TypeScript

import { defineBuildConfig, BuildEntry } from 'unbuild'
export default defineBuildConfig({
declaration: true,
entries: [
// Core
{ input: 'src/index' },
// App
{ input: 'src/app/', outDir: 'dist/app/' },
// Runtime dirs
...[
'head',
'pages'
].map(name => ({ input: `src/${name}/runtime/`, outDir: `dist/${name}/runtime`, format: 'esm' } as BuildEntry))
],
dependencies: [
'nuxi',
'vue-router',
'ohmyfetch'
],
externals: [
'@vue/reactivity',
'@vue/shared',
'@vueuse/head',
'vue-meta'
]
})