speedskater / babel-plugin-rewire

A babel plugin adding the ability to rewire module dependencies. This enables to mock modules for testing purposes.
843 stars 90 forks source link

Using the rewire transform plugin with chevrotain results in errors about _get__ #206

Open CMCDragonkai opened 6 years ago

CMCDragonkai commented 6 years ago

https://github.com/SAP/chevrotain/issues/601

Basically chevrotain uses the ES6 classes for tokens. And when we use the class, instead of passing the class name into the this.CONSUME function, it passes _get__. Would rewire somehow change the class's name?

CMCDragonkai commented 6 years ago

Is there a way to make rewire ignore certain files so its rewiring metaprogramming doesn't come into conflict with other metaprogramming systems?