Skip to content

Comments

fix: strip import attributes from dynamic imports to fix Firefox compatibility#21680

Draft
IMaloney wants to merge 1 commit intovitejs:mainfrom
IMaloney:fix/dynamic-import-attributes
Draft

fix: strip import attributes from dynamic imports to fix Firefox compatibility#21680
IMaloney wants to merge 1 commit intovitejs:mainfrom
IMaloney:fix/dynamic-import-attributes

Conversation

@IMaloney
Copy link

Fixes #19095

Dynamic imports with import attributes cause a syntax error in Firefox because Firefox doesn't support import attributes yet.

This change strips import attributes from both static and dynamic imports, allowing dynamic imports to work in Firefox.

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.

Dynamic import with type: 'json' causes syntax error on Firefox

1 participant