Skip to content

Commit

Permalink
fix(plugin-legacy): use correct string length in legacy env replaceme…
Browse files Browse the repository at this point in the history
…nt (#2015)
  • Loading branch information
jonaskuske authored Feb 15, 2021
1 parent d7192ad commit 7f48086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-legacy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function viteLegacyPlugin(options = {}) {
while ((match = re.exec(raw))) {
s.overwrite(
match.index,
match.index + legacyEnvVarMarker.length + 2,
match.index + legacyEnvVarMarker.length,
`false`
)
}
Expand Down

0 comments on commit 7f48086

Please sign in to comment.