From faacd47e560cf4f4025edba4c7dd21b2e9d65526 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 23 Oct 2024 23:32:42 -0700 Subject: [PATCH] Add EnvironmentPlugin --- rspack.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/rspack.config.ts b/rspack.config.ts index c69906e09..775e35e55 100644 --- a/rspack.config.ts +++ b/rspack.config.ts @@ -55,6 +55,7 @@ const config: rspack.Configuration = { new rspack.DefinePlugin({ '__COMMIT_HASH': JSON.stringify(gitRevision.commithash()), }), + new rspack.EnvironmentPlugin(['NODE_ENV']), new rspack.IgnorePlugin({ // Workaround for broken libraries resourceRegExp: /^(fs|path)$/,