Nuxt/packages/nuxi/build.config.ts

32 lines
580 B
TypeScript
Raw Normal View History

import { defineBuildConfig } from 'unbuild'
2021-04-09 13:48:39 +00:00
export default defineBuildConfig({
declaration: true,
rollup: {
inlineDependencies: true,
resolve: {
exportConditions: ['production', 'node'] as any
}
},
2021-04-09 13:48:39 +00:00
entries: [
'src/cli',
'src/cli-run',
'src/cli-wrapper',
2021-04-09 13:48:39 +00:00
'src/index'
],
externals: [
2021-04-16 20:05:49 +00:00
'@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'
2021-04-09 13:48:39 +00:00
]
})