1

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?

2
  • 1
    Does core-js/stable include internal dependencies, and are all dependencies already defined? Commented May 8 at 14:11
  • 3
    you have to pin "core-js/stable", to: "https://ga.jspm.io/npm:[email protected]/stable/index.js" so dependencies are resolved relative to cdn. Commented May 8 at 14:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.