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

add internal node modules to import map (deno) #714

Closed
mavdotjs opened this issue Sep 2, 2023 · 0 comments
Closed

add internal node modules to import map (deno) #714

mavdotjs opened this issue Sep 2, 2023 · 0 comments

Comments

@mavdotjs
Copy link

mavdotjs commented Sep 2, 2023

When adding a library via deno task esm:add ..., the CLI should automatically add an import map for any internal node modules imported by ...

{
  "imports": {
    "lib": "https://esm.sh/v131/*lib@4.2.0",
    "lib2": "https://esm.sh/v131/*lib2@0.1.69",
  },
  "scopes": {
    "https://esm.sh/v131/": {
      "events": "node:events" // < if 'events' is imported by lib or lib2, this would be added here
    }
  }
}
@ije ije closed this as completed in 6855ed9 Sep 2, 2023
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

1 participant