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: support exports array access notation #18

Merged
merged 1 commit into from
Dec 29, 2021

Conversation

stagas
Copy link
Contributor

@stagas stagas commented Dec 26, 2021

Hey! Thanks for the module.

I added to the CommonJS test regexp the exports array notation: exports[foo].

Specifically, i needed to import Jest snapshots in vite and they are CommonJS files using exports['some snapshot'] so i needed this plugin, but unfortunately the test regexp was failing. This PR fixes this issue.

Copy link
Member

@jiawulin001 jiawulin001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ygj6 ygj6 merged commit ea65e69 into originjs:main Dec 29, 2021
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.

3 participants