Skip to content

Commit

Permalink
Add EnvironmentPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
encounter committed Oct 24, 2024
1 parent e4da005 commit faacd47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rspack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)$/,
Expand Down

0 comments on commit faacd47

Please sign in to comment.