I have the following within my importmap.rb
pin 'core-js/stable', to: 'core-js--stable.js' # @3.42.0
However, when I try to import that package into my application.js:
import 'core-js/stable';
this then produces a bunch of extra requests for files that I don't have and thus cause 404s, for instance:
/modules/es.string.trim.js
/modules/es.string.trim-start.js
/modules/es.string.trim-end.js
etc
How can I use something like core-js/stable and make sure everything downloads as it should?
core-js/stableinclude internal dependencies, and are all dependencies already defined?pin "core-js/stable", to: "https://ga.jspm.io/npm:[email protected]/stable/index.js"so dependencies are resolved relative to cdn.