Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Commit f0749bf

Browse files
committed
Update README to use -loader suffix to support Webpack 2
1 parent 73efa37 commit f0749bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ Wraps a react component in a proxy component to enable Code Splitting (loads a r
1111
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)
1212

1313
``` js
14-
var Component = require("react-proxy!./Component");
14+
var Component = require("react-proxy-loader!./Component");
1515
// => returns the proxied component (It loads on demand.)
1616
// (webpack creates an additional chunk for this component and its dependencies)
1717

18-
var ComponentProxyMixin = require("react-proxy!./Component").Mixin;
18+
var ComponentProxyMixin = require("react-proxy-loader!./Component").Mixin;
1919
// => returns a mixin for the proxied component
2020
// (This allows you to setup rendering for the loading state for the proxy)
2121
var ComponentProxy = React.createClass({
@@ -43,7 +43,7 @@ module.exports = {
4343
/\.async\.jsx$/, // select component by extension
4444
"/abs/path/to/component.jsx" // absolute path to component
4545
],
46-
loader: "react-proxy"
46+
loader: "react-proxy-loader"
4747
}
4848
]
4949
}
@@ -55,7 +55,7 @@ module.exports = {
5555
You can give the chunk a name with the `name` query parameter:
5656

5757
``` js
58-
var Component = require("react-proxy?name=chunkName!./Component");
58+
var Component = require("react-proxy-loader?name=chunkName!./Component");
5959
```
6060

6161
# License

0 commit comments

Comments
 (0)