mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-22 11:22:43 +00:00
27 lines
502 B
TypeScript
27 lines
502 B
TypeScript
import { defineBuildConfig } from 'unbuild'
|
|
import { addRollupTimingsPlugin, stubOptions } from '../../debug/build-config'
|
|
|
|
export default defineBuildConfig({
|
|
declaration: true,
|
|
entries: [
|
|
'src/index',
|
|
],
|
|
rollup: {
|
|
inlineDependencies: ['lodash-es'],
|
|
},
|
|
stubOptions,
|
|
hooks: {
|
|
'rollup:options' (ctx, options) {
|
|
addRollupTimingsPlugin(options)
|
|
},
|
|
},
|
|
externals: [
|
|
'@rspack/core',
|
|
'@nuxt/schema',
|
|
'nitropack',
|
|
'webpack',
|
|
'vite',
|
|
'h3',
|
|
],
|
|
})
|