Skip to content

Commit

Permalink
chore: remove rollup replace warning
Browse files Browse the repository at this point in the history
Currently we have a warning when building VTU.

```
(!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
```

`@rollup/plugin-replace` introduced a new option in v2.4.0 to prevent accidental assignements.
See https://github.com/rollup/plugins/blob/master/packages/replace/CHANGELOG.md#v240

This probably does not matter for us, but let's get rid of the warning.
  • Loading branch information
cexbrayat committed Feb 25, 2021
1 parent d055022 commit 38a0096
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ function createEntry(options) {
],
plugins: [
replace({
"process.env.NODE_ENV": true
values: {
"process.env.NODE_ENV": "true"
},
preventAssignment: true
}),
resolve(), commonjs(), json()
],
Expand Down

0 comments on commit 38a0096

Please sign in to comment.