mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
11626eea4f
Co-authored-by: Daniel Roe <daniel@roe.dev>
29 lines
585 B
TypeScript
29 lines
585 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
|
|
...[
|
|
'core',
|
|
'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'
|
|
]
|
|
})
|