Skip to content

Set preventAssignment to true for rollup-replace plugin

Achilleas Pipinellis requested to merge rollup-prevent-assignment into master

I was getting the following warning while the site was building:

(!) 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`.

This addition seems to fix that.

In the plugin description is says that:

Prevents replacing strings where they are followed by a single equals sign.

Edited by Achilleas Pipinellis

Merge request reports