Skip to content

Migrating JS from sprockets to ViteJs #251

Answered by ElMassimo
dr-nyt asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@dr-nyt
Comment options

@ElMassimo
Comment options

@dr-nyt
Comment options

Answer selected by dr-nyt
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants