stealjs / steal

Gets JavaScript
https://stealjs.com
MIT License
1.36k stars 522 forks source link

npm module names used as identifiers should resolve #1490

Closed matthewp closed 5 years ago

matthewp commented 5 years ago

A scenario like this can cause bugs:

define(["foo@1.0.0#index"], function() {

});

Where the package.json contains:

{
  "dependencies": {
    "foo": "2.0.0"
  }
}

It will resolve to the wrong version.