Closed xveganxxxedgex closed 7 years ago
@xveganxxxedgex sorry for the late replay. Is this still an issue for you. If this is the case could you please provide a minimal project reproducing your issue?
@speedskater This looks to be fixed with v7.0 - thanks!
I'm not sure if this is a babel-loader issue, or a babel-plugin-rewire issue. My tests that use rewire are all failing when babel-loader v^6.3.0 is installed. I'm getting the error, TopBar being the component that's being tested:
TypeError: undefined is not a constructor (evaluating '_TopBar2.default.__Rewire__')
It works fine with v6.2.7.
Here's my config files, I'm using webpack 2:
.babelrc
package.json
webpack rule
If this is indeed a babel-plugin-rewire issue, let me know if there was something I overlooked for these recent changes, or if there's anything else I can provide to debug. Thank you!