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

import map #44830

Closed
loynoir opened this issue Sep 30, 2022 · 3 comments
Closed

import map #44830

loynoir opened this issue Sep 30, 2022 · 3 comments
Labels
feature request Issues that request new features to be added to Node.js. stale

Comments

@loynoir
Copy link

loynoir commented Sep 30, 2022

What is the problem this feature will solve?

  • isomorphic code between node deno browser
  • There is an old joke about the heaviest objects in the universe

What is the feature you are proposing to solve the problem?

Deno support import map

  "importMap": "./import_map.json",

Above path is the relative path to /path/to/deno.jsonc

Given

    "minimist@1.2.6": "https://esm.sh/minimist@1.2.6",

Or better

    "minimist@1.2.6": "npm:minimist@1.2.6",

Can write code like

import minimist from "minimist@1.2.6";

Which I think is better than

import minimist from "minimist";

What alternatives have you considered?

No response

Related

microsoft/TypeScript#43326

@loynoir loynoir added the feature request Issues that request new features to be added to Node.js. label Sep 30, 2022
@Delapouite
Copy link
Contributor

Related discussion : #49443

Copy link
Contributor

There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.

For more information on how the project manages feature requests, please consult the feature request management document.

@github-actions github-actions bot added the stale label Feb 29, 2024
Copy link
Contributor

There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.

For more information on how the project manages feature requests, please consult the feature request management document.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js. stale
Projects
Status: Pending Triage
Development

No branches or pull requests

2 participants