This repository was archived by the owner on Dec 5, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ Wraps a react component in a proxy component to enable Code Splitting (loads a r
11
11
[ Documentation: Using loaders] ( http://webpack.github.io/docs/using-loaders.html )
12
12
13
13
``` js
14
- var Component = require (" react-proxy!./Component" );
14
+ var Component = require (" react-proxy-loader !./Component" );
15
15
// => returns the proxied component (It loads on demand.)
16
16
// (webpack creates an additional chunk for this component and its dependencies)
17
17
18
- var ComponentProxyMixin = require (" react-proxy!./Component" ).Mixin ;
18
+ var ComponentProxyMixin = require (" react-proxy-loader !./Component" ).Mixin ;
19
19
// => returns a mixin for the proxied component
20
20
// (This allows you to setup rendering for the loading state for the proxy)
21
21
var ComponentProxy = React .createClass ({
@@ -43,7 +43,7 @@ module.exports = {
43
43
/ \. async\. jsx$ / , // select component by extension
44
44
" /abs/path/to/component.jsx" // absolute path to component
45
45
],
46
- loader: " react-proxy"
46
+ loader: " react-proxy-loader "
47
47
}
48
48
]
49
49
}
@@ -55,7 +55,7 @@ module.exports = {
55
55
You can give the chunk a name with the ` name ` query parameter:
56
56
57
57
``` js
58
- var Component = require (" react-proxy?name=chunkName!./Component" );
58
+ var Component = require (" react-proxy-loader ?name=chunkName!./Component" );
59
59
```
60
60
61
61
# License
You can’t perform that action at this time.
0 commit comments