Skip to content

Commit

Permalink
docs: fix Define example (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch authored Nov 19, 2023
1 parent e74b94a commit 6bd6103
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,8 @@ In `webpack.config.js`:
- 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
- })
+ new EsbuildPlugin({
+ options: {
+ define: {
+ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
+ },
+ define: {
+ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
+ },
+ }),
]
Expand Down

0 comments on commit 6bd6103

Please sign in to comment.