Nuxt/packages/nuxt3/build.config.ts

29 lines
586 B
TypeScript
Raw Normal View History

import { defineBuildConfig, BuildEntry } from 'unbuild'
2021-04-09 13:48:39 +00:00
export default defineBuildConfig({
declaration: true,
2021-04-09 13:48:39 +00:00
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))
2021-04-09 13:48:39 +00:00
],
dependencies: [
'nuxi',
'vue-router',
'ohmyfetch',
'vue-router',
'vuex5'
],
externals: [
'@vue/reactivity',
'@vue/shared',
'@vueuse/head'
2021-04-09 13:48:39 +00:00
]
})