build(nuxi): add node to export conditions

This commit is contained in:
Pooya Parsa 2022-09-08 18:05:59 +02:00
parent e0c5907f0a
commit 0cc49e2a20

View File

@ -3,7 +3,10 @@ import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
declaration: true,
rollup: {
inlineDependencies: true
inlineDependencies: true,
resolve: {
exportConditions: ['production', 'node'] as any
}
},
entries: [
'src/cli',