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

Support npm: specifiers #73

Open
exside opened this issue Sep 1, 2022 · 2 comments
Open

Support npm: specifiers #73

exside opened this issue Sep 1, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@exside
Copy link

exside commented Sep 1, 2022

As this is pretty new (since 1.25) I assume this wasn't updated yet and therefore throws the following error when there are any imports from NPM.

error: Uncaught Error: load rejected or errored: JsValue(TypeError: Unsupported scheme "npm:" for module "npm:somepackage". Supported schemes: ["data:","blob:","file:","http:","https:"].
TypeError: Unsupported scheme "npm:" for module "npm:somepackage". Supported schemes: ["data:","blob:","file:","http:","https:"].
@jcc10
Copy link

jcc10 commented Mar 9, 2023

At the moment I would recommend using https://esm.sh/ as skypack has been dying a slow and painful death.

@dsherret dsherret changed the title Not working with import ... from 'npm:package' Support npm: specifiers May 4, 2023
@dsherret dsherret added the enhancement New feature or request label May 4, 2023
@johnstonmatt
Copy link

johnstonmatt commented Dec 15, 2023

@dsherret do you know if this is planned or if there is a suitable alternative for bundling modern Deno projects?

I have a few open source binaries compiled with deno that are quite enormous based on the inclusion of npm modules, and I'm hoping to treeshake it back to something reasonable

the binary releases for my open source project (cndi) are here you can see how before cndi version 2.0.0 binaries were 120mb and now they are each >1.8GB, from only 336kb of code

would the deno emit tool help solve this issue if it supported npm specifiers?

Thanks for your work on deno!

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

No branches or pull requests

4 participants