Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It doesn't work with jspm.dev #29

Open
jesuslpm opened this issue Sep 6, 2020 · 1 comment
Open

It doesn't work with jspm.dev #29

jesuslpm opened this issue Sep 6, 2020 · 1 comment

Comments

@jesuslpm
Copy link

jesuslpm commented Sep 6, 2020

It seems that when an import doesn't include the host, it fall backs to https://unpkg.com, but it causes jpm.dev modules to fail.

for example, if you have the following:

import 'https://jspm.dev/[email protected]';

jspm.dev returns the following:


import "/npm:jquery@3!cjs";
import "/npm:bootstrap!cjs";
export { default } from "/npm:[email protected]!cjs";


It works on the browser. It downloads https://jspm.dev/npm:jquery@3!cjs. But import-http plugin tries to fetch https://unpkg.com//npm:jquery@3!cjs which fails.

@cbbfcd
Copy link
Contributor

cbbfcd commented Feb 25, 2021

cjs not be supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants