Replies: 1 comment
-
I found this discussion, it seems it was done to match prod and dev behaviour #14503 In my opinion this decision doesn't make sense, why would prod be different than dev? Isn't the plugin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The biggest problem when using Vite is importing packages that have default export and
__esModule
set to true. These default imports will have shape{ default: x }
during SSR pass andx
in the browser (thanks totransformCjsImport
).Why not apply this transformation in SSR pass too? The alternative is doing this transformation manually
Here is the different behaviour of


vite:import-analysys
Beta Was this translation helpful? Give feedback.
All reactions