vite icon indicating copy to clipboard operation
vite copied to clipboard

Plugin legacy - module output doesn't support Safari 10

Open marco-prontera opened this issue 2 years ago • 0 comments

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

marco-prontera avatar Sep 13 '22 12:09 marco-prontera