jspm / registry

The jspm registry and package.json override service
https://jspm.io
229 stars 256 forks source link

shim for component-classes #973

Closed Vanuan closed 7 years ago

Vanuan commented 7 years ago

How to set up a shim for try-catch cases? https://github.com/component/classes/blob/master/index.js

try {
  var index = require('indexof');
} catch (err) {
  var index = require('component-indexof');
}
Vanuan commented 7 years ago

Fixed like this:

    "npm:component-classes@1.2.6": {
      "map": {
        "component-indexof": "npm:component-indexof@0.0.3",
        "indexof": "npm:component-indexof@0.0.3"
      }
    },