mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
23397e603c
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
27 lines
555 B
TypeScript
27 lines
555 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
|
|
...[
|
|
'meta',
|
|
'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'
|
|
]
|
|
})
|