Skip to content

Possible to use with import maps? #150

Answered by jaredcwhite
fpsvogel asked this question in Q&A
Discussion options

You must be logged in to vote

I'm excited you're excited! 😊

So the importmap stuff I believe is a way to import 3rd party JS modules…it doesn't address any build step for the code you yourself would write.

You could use the new Ruby2JS CLI to output JS files to a place where the asset pipeline picks them up. Barring that, I'm not sure if the Sprockets integration works anymore TBH. I'd much rather recommend using a loader for Webpack or another "jsbundling" option like Rollup.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fpsvogel
Comment options

Answer selected by fpsvogel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants