Replies: 1 comment
-
For anyone coming here, you can get the file like this:
and then in importmap.rb pin "tom-select" # @2.4.1 This seems to bundle tom-select, sifter, unicode-variants and all the plugins. And this line P.S. So far I've discovered everything like the above by trial and error. I posted some questions trying to understand the pin urls better, but at the time of this writing haven't gotten any answers. P.P.S. Every pin in my importmap.rb comes with a big comment above it, explaining all the necessary process to get the dependency correctly, because every single library seems idiosyncratic in the way that it lets you get a fully-bundled esm. I suggest ya'll do the same: big comment about every pin on how you download it, rename it, and pin it. |
Beta Was this translation helpful? Give feedback.
-
I am using tom-select via importmaps in my Rails app. I was on v2.3.1 but after running
importmap pin tom-select
to get v2.4.1 it appears to have downloaded the wrong version from the cdn.I got the following output
Note the
/esm/
subdirectory it pulled from. This pulled the module version but I wanted the compiled version from the/js/
subdirectory on the CDN.I haven't opened an issue yet but was this version (and other dependencies) incorrectly downloaded because of a change in the
package.json
file? My javascript-fu is not strong enough to know.Thoughts?
(e)
Beta Was this translation helpful? Give feedback.
All reactions