mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
26 lines
527 B
TypeScript
26 lines
527 B
TypeScript
import { defineBuildConfig } from 'unbuild'
|
|
import { addRollupTimingsPlugin, stubOptions } from '../../debug/build-config'
|
|
import config from '../webpack/build.config'
|
|
|
|
export default defineBuildConfig({
|
|
...config[0],
|
|
externals: [
|
|
'@rspack/core',
|
|
'#builder',
|
|
'@nuxt/schema',
|
|
],
|
|
stubOptions,
|
|
hooks: {
|
|
'rollup:options' (ctx, options) {
|
|
addRollupTimingsPlugin(options)
|
|
},
|
|
},
|
|
entries: [
|
|
{
|
|
input: '../webpack/src/index',
|
|
name: 'index',
|
|
declaration: true,
|
|
},
|
|
],
|
|
})
|