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
Is your feature request related to a problem? Please describe.
This gem vite_plugin_legacy does not insert all the scripts generated by the @vitejs/plugin-legacy
Describe the solution you'd like
Also Insert the inline scripts inserted by the vite plugin
These are inserted in the head to load legacy build in esm browsers that not support dynamic-import
<scripttype="module">try{import("_").catch(()=>1);}catch(e){}window.__vite_is_dynamic_import_support=true;</script><scripttype="module">!function(){if(window.__vite_is_dynamic_import_support)return;console.warn("vite: loading legacy build because dynamic import is unsupported, syntax error above should be ignored");vare=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
Describe alternatives you've considered
Automatically add the ids that the plugin add for the scripts, or allow pass an id to the tag helpers, this will allow add the missing scripts manualy
Is your feature request related to a problem? Please describe.
This gem
vite_plugin_legacy
does not insert all the scripts generated by the@vitejs/plugin-legacy
Describe the solution you'd like
Also Insert the inline scripts inserted by the vite plugin
These are inserted in the
head
to load legacy build in esm browsers that not supportdynamic-import
Describe alternatives you've considered
Automatically add the ids that the plugin add for the scripts, or allow pass an id to the tag helpers, this will allow add the missing scripts manualy
The text was updated successfully, but these errors were encountered: