Skip to content

Commit

Permalink
fix: preventAssignment warning from @rollup/plugin-replace
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Aug 30, 2021
1 parent c966944 commit d7dac6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/createRollupConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export async function createRollupConfig(
opts.env !== undefined &&
replace({
'process.env.NODE_ENV': JSON.stringify(opts.env),
preventAssignment: true,
}),
sourceMaps(),
shouldMinify &&
Expand Down

0 comments on commit d7dac6c

Please sign in to comment.