From 42c3e6b244aa69d2dec40fa212b0d38e9217ac55 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Wed, 7 Aug 2024 13:49:52 -0700 Subject: [PATCH] [Build] Define process.env.NODE_ENV as part of the vite build This allows us to use Lux's IIFE distribution in ``` diff --git a/vite.config.js b/vite.config.js index ab11c10..a47d399 100644 --- a/vite.config.js +++ b/vite.config.js @@ -26,6 +26,7 @@ export default defineConfig({ hook: "writeBundle", }), ], + define: { "process.env.NODE_ENV": '"production"' }, build: { lib: { // Could also be a dictionary or array of multiple entry points