mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
30 lines
538 B
TypeScript
30 lines
538 B
TypeScript
import { defineBuildConfig } from 'unbuild'
|
|
|
|
export default defineBuildConfig({
|
|
declaration: true,
|
|
rollup: {
|
|
inlineDependencies: true,
|
|
resolve: {
|
|
exportConditions: ['production', 'node'] as any
|
|
}
|
|
},
|
|
entries: [
|
|
'src/cli',
|
|
'src/index'
|
|
],
|
|
externals: [
|
|
'@nuxt/kit',
|
|
'@nuxt/schema',
|
|
'@nuxt/test-utils',
|
|
'fsevents',
|
|
// TODO: Fix rollup/unbuild issue
|
|
'node:url',
|
|
'node:buffer',
|
|
'node:path',
|
|
'node:child_process',
|
|
'node:process',
|
|
'node:path',
|
|
'node:os'
|
|
]
|
|
})
|