2021-04-21 15:10:53 +00:00
|
|
|
import { defineBuildConfig } from 'unbuild'
|
2021-04-09 13:48:39 +00:00
|
|
|
|
2021-04-21 15:10:53 +00:00
|
|
|
export default defineBuildConfig({
|
2021-04-09 13:48:39 +00:00
|
|
|
declaration: true,
|
2021-10-02 16:01:17 +00:00
|
|
|
emitCJS: false,
|
2021-04-09 13:48:39 +00:00
|
|
|
entries: [
|
|
|
|
{
|
|
|
|
input: 'src/config/schema/index',
|
2021-04-21 15:10:53 +00:00
|
|
|
outDir: 'schema',
|
2021-04-09 13:48:39 +00:00
|
|
|
name: 'config',
|
|
|
|
builder: 'untyped',
|
|
|
|
defaults: {
|
2021-08-11 21:48:33 +00:00
|
|
|
rootDir: '/project/'
|
2021-04-09 13:48:39 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
'src/index'
|
2021-04-12 22:12:30 +00:00
|
|
|
],
|
2021-04-15 19:17:44 +00:00
|
|
|
externals: [
|
|
|
|
'webpack',
|
2021-06-17 10:01:24 +00:00
|
|
|
'vite',
|
2021-04-15 19:17:44 +00:00
|
|
|
'nuxt',
|
2021-11-19 12:22:27 +00:00
|
|
|
'nuxt3',
|
|
|
|
// type imports
|
|
|
|
'@vue/compiler-core',
|
|
|
|
'vue-meta',
|
|
|
|
'rollup-plugin-visualizer',
|
|
|
|
'webpack-bundle-analyzer',
|
|
|
|
'vue'
|
2021-04-15 19:17:44 +00:00
|
|
|
]
|
2021-04-21 15:10:53 +00:00
|
|
|
})
|