-
So we have some really old javascript that gets compiled into a single file using sprockets. We can't use them directly wit ViteJs because we will need to add |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi Shehryar! If you can't (or don't want) to migrate your code to ESM, it might be better to continue using sprockets. If you want to, you can combine |
Beta Was this translation helpful? Give feedback.
-
@dr-nyt thank you for posting this. @ElMassimo maybe you should add this to the Sprockets migration docs. |
Beta Was this translation helpful? Give feedback.
Hi Shehryar!
If you can't (or don't want) to migrate your code to ESM, it might be better to continue using sprockets.
There's no advantage to using Vite if your code is not using modules.
If you want to, you can combine
sprockets
and Vite Ruby in the same project, using Vite only for new JS/TS.