Skip to content

feat(legacy)!: bump modern browser threshold to import.meta.resolve support#21662

Merged
sapphi-red merged 2 commits intovitejs:mainfrom
sapphi-red:feat/bump-modern-browser-threshold-to-import-meta-resolve
Feb 19, 2026
Merged

feat(legacy)!: bump modern browser threshold to import.meta.resolve support#21662
sapphi-red merged 2 commits intovitejs:mainfrom
sapphi-red:feat/bump-modern-browser-threshold-to-import-meta-resolve

Conversation

@sapphi-red
Copy link
Member

Split from #21580

#21580 relies on import.meta.resolve. This means the modern chunks will only run successfully on browsers that supports import.meta.resolve when build.chunkImportMap option is enabled. To fallback browsers that doesn't support import.meta.resolve to the legacy chunks, this PR bumps the modern browser threshold to import.meta.resolve support, specifically:

  • Edge 79+ -> 105+ (released in 2022-09-01)
  • Firefox 67+ -> 106+ (released in 2022-10-18)
  • Chrome 64+ -> 105+ (released in 2022-09-02)
  • Safari 12+ -> 16.4+ (released in 2023-03-27)

This change also has the upside of reducing the modern chunk polyfills.

Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
@sapphi-red sapphi-red merged commit cc50822 into vitejs:main Feb 19, 2026
19 checks passed
@sapphi-red sapphi-red deleted the feat/bump-modern-browser-threshold-to-import-meta-resolve branch February 19, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant