Skip to content

Commit e46f075

Browse files
authored
Merge pull request #424 from rainke/patch-1
modules is not defined
2 parents 56f61e4 + 7e64816 commit e46f075

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/guides/code-splitting-libraries.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ __webpack.config.js__
3333

3434
```javascript
3535

36-
modules.export = function(env) {
36+
module.exports = function(env) {
3737
return {
3838
entry: './index.js',
3939
output: {
@@ -56,7 +56,7 @@ __webpack.config.js__
5656
5757
```javascript
5858
59-
modules.export = function(env) {
59+
module.exports = function(env) {
6060
return {
6161
entry: {
6262
main: './index.js',
@@ -85,7 +85,7 @@ __webpack.config.js__
8585
```javascript
8686
8787
var webpack = require('webpack');
88-
modules.export = function(env) {
88+
module.exports = function(env) {
8989
return {
9090
entry: {
9191
main: './index.js',
@@ -119,7 +119,7 @@ __webpack.config.js__
119119
```javascript
120120

121121
var webpack = require('webpack');
122-
modules.export = function(env) {
122+
module.exports = function(env) {
123123
return {
124124
entry: {
125125
main: './index.js',
@@ -138,4 +138,4 @@ modules.export = function(env) {
138138
};
139139
```
140140

141-
With the above webpack config, we see three bundles being generated. `vendor`, `main` and `manifest` bundles.
141+
With the above webpack config, we see three bundles being generated. `vendor`, `main` and `manifest` bundles.

0 commit comments

Comments
 (0)