Backport code from @vitejs/plugin-legacy to vite_plugin_legacy#296
Backport code from @vitejs/plugin-legacy to vite_plugin_legacy#296Antti wants to merge 5 commits into
Conversation
8daa2ba to
9565429
Compare
|
@ElMassimo Can we review and merge this? |
d55cc92 to
ebe50b8
Compare
d66f582 to
c7bbad9
Compare
|
Hey @ElMassimo — I just encountered this issue, and unfortunately it prevents our team from adopting Vite Ruby. The issue is that for browsers which support ES modules, but not the "baseline widely available" features that Vite depends on, With ... however the fallback behaviour of importing the legacy bundle via SystemJS is not present, resulting in a blank screen on these browsers. Is there any chance you'd be able to take a look at what would be required to get this working in |
Description 📖
Backport most of the logic from @vitejs/plugin-legacy to vite_plugin_legacy
This is currently used in production for over a year to support a wide variety of legacy browsers.
Background 📜
@vitejs/plugin-legacy does a lot of magic to support legacy browsers by rewriting
index.html,we're mostly interested in:
nomodulefix