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

[node-resolve] entry points fallback being ignored #721

Closed
intrnl opened this issue Dec 9, 2020 · 2 comments
Closed

[node-resolve] entry points fallback being ignored #721

intrnl opened this issue Dec 9, 2020 · 2 comments

Comments

@intrnl
Copy link

intrnl commented Dec 9, 2020

  • Rollup Plugin Name: node-resolve
  • Rollup Plugin Version: 11.0.0
  • Rollup Version: 2.33.3
  • Operating System (or Browser): Linux (Arch Linux 5.9.12-zen1-1-zen)
  • Node Version: v15.3.0
  • Link to reproduction: Repl.it playground

According to Node.js documentations, you are able to use arrays of files to use as entrypoint, sort of as a fallback mechanism.

{
  "exports": {
    ".": ["./dist/file1.js", "./dist/file2.js"]
  }
}

Expected Behavior

The plugin is able to parse the array of entries

Actual Behavior

The array is being ignored

Additional Information

I believe Webpack 5 has an undocumented feature where it supports conditional exports inside the array, is this worth implementing or should it just be ignored since it's not official?

Example of packages using it is: escalade and is-core-module

@shellscape
Copy link
Collaborator

Please do search before opening new issues 😄 #693

@intrnl
Copy link
Author

intrnl commented Dec 9, 2020

Ahahaha, sorry, was only looking at the issues and not the pull requests 🙈

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

2 participants