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 there any information on how to add the vitejs/plugin-legacy plugin to a project?
I added it to the plugins list in the app.config.ts. It creates polyfills in the dist output and manifest.json. But I don't know how to render index.html during SSR so that all the necessary scripts are included. E.g., in a simple Vite app with this plugin, index.html is generated with a script that checks if it’s a modern browser (__vite_is_modern_browser).
We generate the HTML by reading manifest.inputs[...].assets() and appending them, but this list does not include the scripts related to the polyfills plugin.
The text was updated successfully, but these errors were encountered:
Hi!
Is there any information on how to add the vitejs/plugin-legacy plugin to a project?
I added it to the
plugins
list in theapp.config.ts
. It creates polyfills in thedist
output andmanifest.json
. But I don't know how to renderindex.html
during SSR so that all the necessary scripts are included. E.g., in a simple Vite app with this plugin,index.html
is generated with a script that checks if it’s a modern browser (__vite_is_modern_browser
).We generate the HTML by reading
manifest.inputs[...].assets()
and appending them, but this list does not include the scripts related to the polyfills plugin.The text was updated successfully, but these errors were encountered: