Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(plugin-legacy): use correct string length in legacy env replacement #2015

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

jonaskuske
Copy link
Contributor

@jonaskuske jonaskuske commented Feb 13, 2021

The + 2 accounted for the quotes – which are gone now that __VITE_IS_LEGACY__ isn't a string anymore.
So currently too much of the source code is removed and builds break with build.sourcemap: true

@yyx990803 yyx990803 merged commit 7f48086 into vitejs:main Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants