Can't get @vitejs/plugin-legacy working
See original GitHub issueMe again 😅
I (think) I can’t get @vitejs/plugin-legacy working properly, I’ve set up helmet
for express to generate the Content-Security-Policy
headers for the script hashes and it’s generating the legacy bundles, but I think it’s not actually referencing anything in my html not in <head/>
nor in <body/>
My vite.config.js
plugins looks like this
plugins: [legacy(), reactRefresh(), ssr()],
Also tried different ordering just to make sure.
Do I have to include anything in my _default.page.server.tsx
manually?
I guess it’s due to vite-plugin-ssr
not using Vites static index.html
file 🤔
Issue Analytics
- State:
- Created 2 years ago
- Comments:18 (12 by maintainers)
Top Results From Across the Web
@vitejs/plugin-legacy - npm
The legacy plugin offers a way to use native import() in the modern build while falling back to the legacy build in browsers...
Read more >Plugins - Vite
Before searching for a Vite or Compatible Rollup plugin, check out the Features Guide. ... Provides legacy browsers support for the production build....
Read more >Troubleshooting | Vite Ruby
Verify that both vite and vite-plugin-ruby are in devDependencies in your package.json and have been installed by running bin/vite info .
Read more >Exploring Vite Through its Source Code - SitePoint
Note: plugin-legacy is for legacy browsers that don't support native ESM. The most common way that these plugins are used is through their ......
Read more >Vite plugin for Craft CMS - nystudio107
The Vite plugin allows the use of the Vite.js next generation frontend tooling with Craft ... However, it works fine as a full...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No worries, let me know if & how you run into problems.
On Sat, Aug 21, 2021 at 1:59 PM Kadir Yazıcı @.***> wrote:
Also check out #477