diff --git a/code/core/scripts/prep.ts b/code/core/scripts/prep.ts index 895b8f049d32..9a100c628d33 100644 --- a/code/core/scripts/prep.ts +++ b/code/core/scripts/prep.ts @@ -115,6 +115,10 @@ async function run() { platform: 'browser', conditions: ['browser', 'module', 'import', 'default'], + + define: { + 'process.env.NODE_ENV': JSON.stringify('production'), + }, } satisfies EsbuildContextOptions; const nodeEsbuildOptions = {