Skip to content

Commit 39cc0e2

Browse files
mcavskipjack
authored andcommitted
docs(config): fix defaults in node (#1537)
Per the following file, the default value of `node.__filename` and `node.__dirname` are `"mock"`, not `true`: https://github.com/webpack/webpack/blob/aaa6eea68f42517ac8af0f4aa454951cddfcef62/lib/WebpackOptionsDefaulter.js#L77
1 parent afa690d commit 39cc0e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/configuration/node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ See [the source](https://github.com/webpack/webpack/blob/master/buildin/global.j
7474

7575
`boolean | "mock"`
7676

77-
Default: `true`
77+
Default: `"mock"`
7878

7979
Options:
8080

@@ -87,7 +87,7 @@ Options:
8787

8888
`boolean | "mock"`
8989

90-
Default: `true`
90+
Default: `"mock"`
9191

9292
Options:
9393

0 commit comments

Comments
 (0)