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

Dev environment #153

Closed w0nche0l closed 7 years ago

w0nche0l commented 7 years ago

Can you specify somewhere that should be only enabled for your test environments in your .babelrc? It creates a very difficult to track down error in the react native packager.

rainydio commented 7 years ago

https://babeljs.io/docs/usage/babelrc/ env option

speedskater commented 7 years ago

@rainydio thanks for providing an answer. @w0nche0l Does the answer of @rainydio did solve your issue?