2022-12-11 21:44:52 +00:00
|
|
|
import type { BuildEntry } from 'unbuild'
|
|
|
|
import { defineBuildConfig } 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-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
|
|
|
|
...[
|
2022-04-07 11:28:04 +00:00
|
|
|
'core',
|
2022-04-05 14:51:55 +00:00
|
|
|
'head',
|
2021-08-11 20:28:38 +00:00
|
|
|
'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',
|
2022-11-15 14:33:43 +00:00
|
|
|
'ofetch'
|
2021-08-11 20:28:38 +00:00
|
|
|
],
|
|
|
|
externals: [
|
|
|
|
'@vue/reactivity',
|
|
|
|
'@vue/shared',
|
2022-12-12 10:07:31 +00:00
|
|
|
'@vueuse/head'
|
2021-04-09 13:48:39 +00:00
|
|
|
]
|
2021-04-21 15:10:53 +00:00
|
|
|
})
|