vite
vite copied to clipboard
Plugin legacy - module output doesn't support Safari 10
Description
When using the plugin-legacy the modern bundle of the app includes the dynamic import, and in safari 10 it throws a syntax error that blocks the parsing and the execution of the entire application.
safari 10.1 Syntax Error Unexpected Keyword import
Suggested solution
Since this import is a thing used for a specific purpose I just implemented a parameter that let me prevent the plugin from using that forced dynamic import and keep the application running also in safari 10.
Link PR: https://github.com/vitejs/vite/pull/10100
Alternative
No response
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.