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): respect modernTargets option if renderLegacyChunks disabled #15789

Merged
merged 1 commit into from
Mar 8, 2024

Commits on Feb 8, 2024

  1. fix: always read modernTargets option (fix: vitejs#15788)

    If `modernPolyfills` is set to `true`, but `renderLegacyChunks` is set
    to false, `genLegacy` will be false and we would return early. If this
    return happens before `modernTargets` is initialized, the modern
    polyfills will be generated with the wrong (the default?) target instead
    of the specified `modernTargets`.
    jgosmann committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    3fc1068 View commit details
    Browse the repository at this point in the history