@speedskater on thing I am noticing is that Rewire isn't available on a * import:
import * as mymodule from './mymodule;
mymodule.Rewire is undefined. if I have a export default fallback it seems to work. Is that your suggested use?
@speedskater came across an edge case. I am getting:
Duplicate declaration "typeOfOriginalExport" (This is an error on an internal node. Probably an internal error)
and I think its because it is doing the rewire twice. I am using gulp babel and also a build procedure with a dynamic require. Is there a check to see if the import/require has already been rewired?
I am trying to get email@example.com to work on a babel 6 karma mocha webpack setup, and I have followed the instructions in the readme, and I am ending up with the following error
Uncaught TypeError: Cannot read property 'Rewire' of undefined
Any advice/assistance would be most appreciated
Uncaught TypeError: Cannot read property '__Rewire__' of undefined