mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-22 19:32:40 +00:00
23 lines
476 B
TypeScript
23 lines
476 B
TypeScript
import { defineBuildConfig } from 'unbuild'
|
|
import { addRollupTimingsPlugin, stubOptions } from '../../debug/build-config'
|
|
|
|
export default defineBuildConfig({
|
|
declaration: true,
|
|
entries: [
|
|
'src/index',
|
|
{ input: 'src/runtime/', outDir: 'dist/runtime', format: 'esm' },
|
|
],
|
|
stubOptions,
|
|
hooks: {
|
|
'rollup:options' (ctx, options) {
|
|
addRollupTimingsPlugin(options)
|
|
},
|
|
},
|
|
dependencies: [
|
|
'vue',
|
|
],
|
|
externals: [
|
|
'@nuxt/schema',
|
|
],
|
|
})
|