Skip to content

Commit f1f12b1

Browse files
Fix build
1 parent d5e26ac commit f1f12b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/rollup.base.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ export default {
3636
esbuild({
3737
target: 'es2015',
3838
sourceMap: true,
39-
minify: isProduction
39+
minify: isProduction,
40+
define: {
41+
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development')
42+
}
4043
})
4144
]
4245
}

0 commit comments

Comments
 (0)