Skip to content

Document new options in webpack 2.3.0 #1108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion content/configuration/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ Example for an `expr` dynamic dependency: `require(expr)`.

Example for an `wrapped` dynamic dependency: `require("./templates/" + expr)`.

Here are the available options with their defaults:
Here are the available options with their [defaults](https://github.com/webpack/webpack/blob/master/lib/WebpackOptionsDefaulter.js):

```js
module: {
Expand All @@ -298,6 +298,7 @@ module: {
wrappedContextCritical: false
wrappedContextRecursive: true,
wrappedContextRegExp: /.*/,
strictExportPresence: false // since webpack 2.3.0
}
```

Expand All @@ -308,3 +309,4 @@ A few use cases:
* Warn for dynamic dependencies: `wrappedContextCritical: true`.
* `require(expr)` should include the whole directory: `exprContextRegExp: /^\.\//`
* `require("./templates/" + expr)` should not include subdirectories by default: `wrappedContextRecursive: false`
* `strictExportPresence` makes missing exports an error instead of warning