-
I am using tom-select via importmaps in my Rails app. I was on v2.3.1 but after running I got the following output
Note the I haven't opened an issue yet but was this version (and other dependencies) incorrectly downloaded because of a change in the Thoughts? (e) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
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.
-
rails/importmap-rails#288 seems related |
Beta Was this translation helpful? Give feedback.
For anyone coming here, you can get the file like this:
and then in importmap.rb
This seems to bundle tom-select, sifter, unicode-variants and all the plugins. And this line
import TomSelect from "tom-select"
seems to work.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, explai…