mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
30 lines
612 B
TypeScript
30 lines
612 B
TypeScript
import type { BuildEntry } from 'unbuild'
|
|
import { defineBuildConfig } from 'unbuild'
|
|
|
|
export default defineBuildConfig({
|
|
declaration: true,
|
|
entries: [
|
|
// Core
|
|
{ input: 'src/index' },
|
|
// App
|
|
{ input: 'src/app/', outDir: 'dist/app/' },
|
|
// Runtime dirs
|
|
...[
|
|
'core',
|
|
'head',
|
|
'pages'
|
|
].map(name => ({ input: `src/${name}/runtime/`, outDir: `dist/${name}/runtime`, format: 'esm' } as BuildEntry))
|
|
],
|
|
dependencies: [
|
|
'nuxi',
|
|
'vue-router',
|
|
'ofetch'
|
|
],
|
|
externals: [
|
|
'@vue/reactivity',
|
|
'@vue/shared',
|
|
'@vueuse/head',
|
|
'vue-meta'
|
|
]
|
|
})
|