diff options
author | jhnns <johannes.ewald@peerigon.com> | 2013-10-01 01:12:08 +0400 |
---|---|---|
committer | jhnns <johannes.ewald@peerigon.com> | 2013-10-01 01:12:08 +0400 |
commit | f9adaa4bf258a66f0ee09de534b298f1d680c877 (patch) | |
tree | bf1aa829a93bd4787e07fcddada08a37c8d39b2a | |
parent | dcd95029b5bac6719cc2cafecebcb170232a2661 (diff) |
- re-added note on CoffeeScript #8 (since require.extensions seems to stay - though it's bad practice in production code)
-rw-r--r-- | README.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -8,7 +8,12 @@ rewire adds a special setter and getter to modules so you can modify their behav - leak private variables - override variables within the module. -rewire does **not** load the file and eval the contents to emulate node's require mechanism. In fact it uses node's own require to load the module. Thus your module behaves exactly the same in your test environment as under regular circumstances (except your modifications). +rewire does **not** load the file and eval the contents to emulate node's require mechanism. In fact it uses node's own +require to load the module. Thus your module behaves exactly the same in your test environment as under regular +circumstances (except your modifications). + +Good news to all caffeine-addicts: rewire works also with [Coffee-Script](http://coffeescript.org/). Note that in this +case CoffeeScript needs to be listed in your devDependencies. If you want to use rewire also on the client-side take a look at [client-side bundlers](https://github.com/jhnns/rewire#client-side-bundlers) |