From ee82a85acd059c56955f62e40ba5aae7e40b875c Mon Sep 17 00:00:00 2001 From: david ornelas Date: Tue, 19 Aug 2025 12:40:25 -0700 Subject: [PATCH] fix(unity-bootstrap-theme): add process.env to vite build There was an error in the js for unity where it was attempting to access process.env. It needs that at runtime --- packages/unity-bootstrap-theme/vite.config.bundle.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/unity-bootstrap-theme/vite.config.bundle.js b/packages/unity-bootstrap-theme/vite.config.bundle.js index 09a7915a9e..ee398b0b9e 100644 --- a/packages/unity-bootstrap-theme/vite.config.bundle.js +++ b/packages/unity-bootstrap-theme/vite.config.bundle.js @@ -33,6 +33,10 @@ export default defineConfig((/** @type {import('vite').ConfigEnv} */ _) => { }, }, ], + define: { + process: {env: {NODE_ENV: process.env.NODE_ENV}}, // import.meta not available in cjs + global: {} + }, build: { ...baseConfig.build, emptyOutDir: false,