-
Notifications
You must be signed in to change notification settings - Fork 20
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
Rewire throws error when using ES6 Classes #11
Comments
Ok, so more progress on understanding this as it applies to testing: Since upgrading Webpack, I'm now required to "require"
But this works:
Another thing:
When importing using Apologies -- lots going on here, but I feel I've been able to narrow the issue down. |
Closing this and moving the issue over to focus on imports |
That's strange... #12 |
Note that I am using the 'rewire-webpack' plugin. Please close if N/A:
I've just finished porting all of my React.js code to ES6 Classes and found that my tests have broken due to Rewire (seemingly) not supporting the new syntax.
Given the simplest example:
And my test, which consists of just a single import:
This error is thrown:
Any assistance would be appreciated!
The text was updated successfully, but these errors were encountered: