diff options
author | Johannes Ewald <mail@johannesewald.de> | 2013-03-13 04:33:40 +0400 |
---|---|---|
committer | Johannes Ewald <mail@johannesewald.de> | 2013-03-13 04:33:40 +0400 |
commit | ce7cbc88e6913e9039304126cce66e00f10166c7 (patch) | |
tree | 56d3715ffc776fedd26277eab336ac5b95246325 /README.md | |
parent | df5285aa66df5855d1a9eee8f1ede1b4a192abb6 (diff) |
- Added deprecation warning for client-side bundlers
- Updated package.json for node v0.10
- Removed tests for client-side bundlers
- Updated .travis.yml for node v0.10
- Updated README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 25 |
1 files changed, 4 insertions, 21 deletions
@@ -12,6 +12,8 @@ rewire does **not** load the file and eval the contents to emulate node's requir Good news to all caffeine-addicts: rewire works also with [Coffee-Script](http://coffeescript.org/). Note that in this case CS 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) + [![Build Status](https://secure.travis-ci.org/jhnns/rewire.png?branch=master)](http://travis-ci.org/jhnns/rewire) [![Dependency Status](http://david-dm.org/jhnns/rewire/status.png)](http://david-dm.org/jhnns/rewire) Dependency tracking by [David](http://david-dm.org/) @@ -131,31 +133,12 @@ Returns the private variable. ##Client-Side Bundlers -rewire comes also with support for client-side bundlers. But since it relies heavily on node's require mechanism it can't be used on the client-side without adding special middleware to the bundling process. Currently supported bundlers are: - -- [browserify](https://github.com/substack/node-browserify) @1.x -- [webpack](https://github.com/webpack/webpack) @ 0.8.x - -However, expect this feature to be extracted into own bundler-specific modules soon. - -**Please note:** Unfortunately the line numbers in stack traces have an offset of +2 (browserify) / +1 (webpack). -This is caused by generated code that is added during the bundling process. +###webpack +See [rewire-webpack](https://github.com/jhnns/rewire-webpack) ###browserify - rewire currently only supports browserify@1.x. I'm not planing to continue development, but if you're relying on this feature [please let me know](https://github.com/jhnns/rewire/issues/13). -```javascript -var b = browserify(); - -// Add rewire as browserify middleware -b.use(require("rewire").bundlers.browserify); -``` - -###webpack - -see [rewire-webpack](https://github.com/jhnns/rewire-webpack) - <br /> ##License |