Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Feature: Support ESM subpath _imports_ #58

Open
ryan-roemer opened this issue May 28, 2021 · 0 comments
Open

Feature: Support ESM subpath _imports_ #58

ryan-roemer opened this issue May 28, 2021 · 0 comments
Labels
feature New feature or request

Comments

@ryan-roemer
Copy link
Member

ryan-roemer commented May 28, 2021

Ugh. 🤦

// package.json
{
  "imports": {
    "#dep": {
      "node": "dep-node-native",
      "default": "./dep-polyfill.js"
    }
  },
  "dependencies": {
    "dep-node-native": "^1.0.0"
  }
}

and you can then import "#dep" within the module...

@ryan-roemer ryan-roemer added the feature New feature or request label May 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant