2021-04-21 15:10:53 +00:00
|
|
|
import { defineBuildConfig } from 'unbuild'
|
2025-01-17 21:30:43 +00:00
|
|
|
import { addRollupTimingsPlugin, stubOptions } from '../../debug/build-config'
|
2021-04-09 13:48:39 +00:00
|
|
|
|
2021-04-21 15:10:53 +00:00
|
|
|
export default defineBuildConfig({
|
2021-09-21 17:07:24 +00:00
|
|
|
declaration: true,
|
2021-04-09 13:48:39 +00:00
|
|
|
entries: [
|
2022-03-11 08:41:27 +00:00
|
|
|
'src/index',
|
2024-04-05 18:08:32 +00:00
|
|
|
{ input: 'src/runtime/', outDir: 'dist/runtime', format: 'esm' },
|
2021-04-09 13:48:39 +00:00
|
|
|
],
|
2025-01-17 21:30:43 +00:00
|
|
|
stubOptions,
|
|
|
|
hooks: {
|
|
|
|
'rollup:options' (ctx, options) {
|
|
|
|
addRollupTimingsPlugin(options)
|
|
|
|
},
|
|
|
|
},
|
2021-04-09 13:48:39 +00:00
|
|
|
dependencies: [
|
2024-04-05 18:08:32 +00:00
|
|
|
'vue',
|
2021-11-21 16:14:46 +00:00
|
|
|
],
|
|
|
|
externals: [
|
2024-04-05 18:08:32 +00:00
|
|
|
'@nuxt/schema',
|
|
|
|
],
|
2021-04-21 15:10:53 +00:00
|
|
|
})
|