Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rewire-webpack

jhnns4831.0.1

Dependency injection for webpack bundles

dependency, injection, mock, unit, test, leak, webpack, browser, inspect

readme

rewire-webpack

Use rewire in webpack bundles.

Dependency Status

This is a plugin that enables rewire for client-side bundles generated by webpack.

npm status


Installation

npm install rewire-webpack

and then add the RewirePlugin to the webpack config:

var RewirePlugin = require("rewire-webpack");
var webpackConfig = {
    plugins: [
        new RewirePlugin()
    ]
};

After that you can use rewire() in your client-side bundles as usual.


Contribution

Thanks to sokra who wrote most of the code. :)


License

Unlicense

changelog

Changelog

1.0.1

  • Fixed compatibility issue with webpack 1.12.3 #18

1.0.0

  • Reached stable state :)