Skip to content

Commit

Permalink
Fix incorrect stated default of __filename/__dirname
Browse files Browse the repository at this point in the history
Per [1], the default value of `node.__filename` and `node.__dirname` are `"mock"`, not `true`.

[1]: https://github.com/webpack/webpack/blob/aaa6eea68f42517ac8af0f4aa454951cddfcef62/lib/WebpackOptionsDefaulter.js#L77
  • Loading branch information
mcav authored and skipjack committed Aug 25, 2017
1 parent f2782aa commit 780908f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/configuration/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ See [the source](https://github.com/webpack/webpack/blob/master/buildin/global.j

`boolean | "mock"`

Default: `true`
Default: `"mock"`

Options:

Expand All @@ -87,7 +87,7 @@ Options:

`boolean | "mock"`

Default: `true`
Default: `"mock"`

Options:

Expand Down

0 comments on commit 780908f

Please sign in to comment.