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

[@rollup/plugin-node-resolve] specifierResolution=explicit|implicit support #1123

Closed
megheaiulian opened this issue Mar 2, 2022 · 1 comment

Comments

@megheaiulian
Copy link

megheaiulian commented Mar 2, 2022

  • Rollup Plugin Name: @rollup/plugin-node-resolve

Feature

Currently import specifier resolution matches node's ES module resolution and does not support
automatic resolution of file extensions and the ability to import directories that have an index file.
Node will implement a flag (for now experimental) that will allow customizing the esm specifier resolution algorithm.
To match that a specifierResolution option could be added with a default explicit value
When the option is set to implicit the plugin could automatically resolve file extensions and directories similar to https://nodejs.org/dist/latest-v15.x/docs/api/esm.html#esm_customizing_esm_specifier_resolution_algorithm.

Somewhat related to #693

@stale stale bot added the x⁷ ⋅ stale label May 1, 2022
@stale
Copy link

stale bot commented May 2, 2022

Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it.

@stale stale bot closed this as completed May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant