Closed yvele closed 7 years ago
@yvele thanks for providing the sample. I have added a sample (https://github.com/speedskater/babel-plugin-rewire/tree/master/samples/issue163) for your issue, but was not able to reproduce your issue. Could you please have a look at the sample and let me know whether it runs on your system?
@yvele anything new from your side?
@speedskater Sorry I'm not using babel-plugin-rewire
anymore in my projects :persevere:
@yvele sorry to hear that. As i am not able to reproduce your error I will close this issue for now.
Getting the same issue on version 1.1.0
and node@7.10.0
. Removing default
doesn't seem to solve it. Any idea?
I can confirm that tis is an issue with 1.0.0 and Node 7.9.0 as well.
Problem
I get the following error using
babel-plugin-rewire@1.0.0
andnode@6.3.0
Related to https://github.com/speedskater/babel-plugin-rewire/issues/133 (which is closed)
Source code
MyClass.js
.babelrc (
babel-cli@6.14.0
)Behaviour
Actually, rewire exports are made after default export :
Rewire exports should be before default export :
(or something like that...)
Workaround
Not using
default
... :confused:MyClass.js