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

fix(dynamic-import-vars): escape special glob characters #1636

Conversation

sapphi-red
Copy link
Contributor

Rollup Plugin Name: dynamic-import-vars

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers:

refs vitejs/vite#11824

Description

dynamicImportToGlob(parse('import(./${foo}/(foo).js)')) returned ./*/(foo).js. But because ( has a meaning in glob syntax, it meant a different thing. This PR add a escape process to handle special characters like these.

@shellscape
Copy link
Collaborator

thanks!

@shellscape shellscape merged commit 944e7d3 into rollup:master Nov 25, 2023
5 checks passed
@sapphi-red sapphi-red deleted the fix/dynamic-immport-vars-escape-special-chars branch November 26, 2023 11:33
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

Successfully merging this pull request may close these issues.

None yet

3 participants