2021-08-11 20:28:38 +00:00
|
|
|
import { defineBuildConfig, BuildEntry } from 'unbuild'
|
2021-04-09 13:48:39 +00:00
|
|
|
|
2021-04-21 15:10:53 +00:00
|
|
|
export default defineBuildConfig({
|
2021-08-11 20:28:38 +00:00
|
|
|
declaration: true,
|
2021-10-02 16:01:17 +00:00
|
|
|
emitCJS: false,
|
2021-04-09 13:48:39 +00:00
|
|
|
entries: [
|
2021-08-11 20:28:38 +00:00
|
|
|
// 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: [
|
2021-08-11 20:28:38 +00:00
|
|
|
'nuxi',
|
|
|
|
'vue-router',
|
2021-10-19 08:39:48 +00:00
|
|
|
'ohmyfetch'
|
2021-08-11 20:28:38 +00:00
|
|
|
],
|
|
|
|
externals: [
|
|
|
|
'@vue/reactivity',
|
|
|
|
'@vue/shared',
|
|
|
|
'@vueuse/head'
|
2021-04-09 13:48:39 +00:00
|
|
|
]
|
2021-04-21 15:10:53 +00:00
|
|
|
})
|