Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: always read targets options (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 (default?) target instead of the specified `modernTargets`.
- Loading branch information