Old <script>
tags without type="module"
#1437
Answered
by
brillout
shishkin17
asked this question in
Help & Questions
-
After pre-rendering, scripts are loaded with type="module" and rel="modulepreload". Is it possible to configure to load them in an old way not as a module for a more browser compatibility? |
Beta Was this translation helpful? Give feedback.
Answered by
brillout
Jan 15, 2024
Replies: 1 comment 5 replies
-
I'm not sure this should be a priority for the Vike team. What's your use case and what browsers don't support them? That said, I believe https://github.com/vitejs/vite/tree/main/packages/plugin-legacy does what you want. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
shishkin17
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure this should be a priority for the Vike team. What's your use case and what browsers don't support them?
That said, I believe https://github.com/vitejs/vite/tree/main/packages/plugin-legacy does what you want.