You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which then in turn vite import analysis resolves as esm:
const_interop_require_default=(awaitimport(".../@swc/helpers/esm/_interop_require_default.js")).default;// then eventually module runner transform changes:// import -> __vite_ssr_dynamic_import__
Either we have to do:
if we know package (in this case @swc/helpers/...) has esm variant, then we should omit default when transforming from require to `import.
Or we somehow instruct Vite import analysis to resolve it to cjs version of package. (this doesn't sound possible)
Or we check during runtime checkIfItShouldPickDefaultOrNot(await import("...")) based on some heuristics.