mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
29 lines
591 B
TypeScript
29 lines
591 B
TypeScript
import { defineBuildConfig, BuildEntry } from 'unbuild'
|
|
|
|
export default defineBuildConfig({
|
|
declaration: true,
|
|
emitCJS: false,
|
|
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',
|
|
'vue-router'
|
|
],
|
|
externals: [
|
|
'@vue/reactivity',
|
|
'@vue/shared',
|
|
'@vueuse/head'
|
|
]
|
|
})
|