Skip to content

Commit

Permalink
fix: set preventAssignment to remove the warning from the replace plugin
Browse files Browse the repository at this point in the history
Fixes #63
  • Loading branch information
aminya committed Jul 16, 2021
1 parent 8cb2853 commit 6769854
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export function createPlugins(
["@rollup/plugin-replace"],
{
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV),
preventAssignment: true,
},
true
)
Expand Down

0 comments on commit 6769854

Please sign in to comment.