jspm / registry

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

Mapping a dependency to `@empty` changes the import path #1072

Open josephschmitt opened 6 years ago

josephschmitt commented 6 years ago

Kind of a hard issue to succinctly describe, so I've set up a repository where you can easily reproduce this issue https://github.com/josephschmitt/jspm-empty-demo

If you run through those steps, you'll notice you get an error on bundle. Additionally, if you look at the package in jspm_packages, you'll see it changed the import path from import * from '@joe-sh/jspm-empty-other-dependency' to import * from '@empty', which leads to the access error when trying to load index.js in that import path.