We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9ff173 commit 20fdc12Copy full SHA for 20fdc12
packages/vite/src/node/build.ts
@@ -629,6 +629,11 @@ async function buildEnvironment(
629
onwarn(warning, warn) {
630
onRollupWarning(warning, warn, environment)
631
},
632
+ define: {
633
+ ...options.rollupOptions.define,
634
+ // disable builtin process.env.NODE_ENV replacement as it is handled by the define plugin
635
+ 'process.env.NODE_ENV': 'process.env.NODE_ENV',
636
+ },
637
// TODO: remove this and enable rolldown's CSS support later
638
moduleTypes: {
639
...options.rollupOptions.moduleTypes,
0 commit comments