Skip to content

Commit 6769854

Browse files
committed
fix: set preventAssignment to remove the warning from the replace plugin
Fixes #63
1 parent 8cb2853 commit 6769854

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ export function createPlugins(
182182
["@rollup/plugin-replace"],
183183
{
184184
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV),
185+
preventAssignment: true,
185186
},
186187
true
187188
)

0 commit comments

Comments
 (0)