Skip to content

Commit 0b50795

Browse files
graupEugeneHlushko
authored andcommitted
Clarify array syntax of externals (webpack#3204)
1 parent 6fe23aa commit 0b50795

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/content/configuration/externals.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ module.exports = {
7878
};
7979
```
8080

81-
`subtract: ['./math', 'subtract']` converts to a parent child construct, where `./math` is the parent module and your bundle only requires the subset under `subtract` variable.
82-
81+
`subtract: ['./math', 'subtract']` allows you select part of a commonjs module, where `./math` is the module and your bundle only requires the subset under the `subtract` variable. This example would translate to `require('./math').subtract;`
8382

8483
### object
8584

0 commit comments

Comments
 (0)