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

Local import and regex in external configuration #3810

Closed
Naeoth opened this issue Oct 7, 2020 · 1 comment
Closed

Local import and regex in external configuration #3810

Naeoth opened this issue Oct 7, 2020 · 1 comment

Comments

@Naeoth
Copy link

Naeoth commented Oct 7, 2020

  • Rollup Version: 2.28.2
  • Operating System (or Browser): MacOS (10.15.7)
  • Node Version (if applicable): 14.8.0
  • Link to reproduction (IMPORTANT, read below): https://github.com/Naeoth/rollup-issue

To avoid unresolved dependencies warning on compilation, I use a regex for the external rollup configuration to exclude all the imports which starts with "." (it means all the local import in fact).
It worked perfectly before 2.26.8 but a change in 2.26.8 broke the trick.
It seems that now, it's impossible to exclude the local import with a regex if you have a least a regex with /.+/ or /.*/.

Expected Behavior

Include the import like "./..." in the bundle with the regex in the external.

Actual Behavior

Treat the import like "./..." as external module with the regex in the external.

@lukastaegert
Copy link
Member

Is this the same as #3811 ?

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