Skip to content

Commit 77d9189

Browse files
committed
docs: document newly added configurations
1 parent 5c884d9 commit 77d9189

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

site/docs/apis/project-configuration.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ under `entry`, then also (if needed) chunk-splitting will be applied.
202202
If we were to pass multiple file object, then webpack would run in [multi-compiler](https://webpack.js.org/api/node/#multicompiler)
203203
mode, separating dependency tree from each of the file object.
204204

205-
Each file object has two required and three optional properties. Here's the
205+
Each file object has two required and four optional properties. Here's the
206206
interface.
207207

208208
```ts
@@ -222,6 +222,8 @@ interface FileConfig {
222222
appDir: string,
223223
isDev: boolean
224224
) => webpack.Configuration);
225+
// NEW in v6.3.0, to override project level useBabelConfig settings
226+
useBabelConfig?: boolean;
225227
}
226228
```
227229

@@ -406,6 +408,22 @@ We have the default config from [webpack optimization split-chunks plugin](https
406408
with only exception of setting `chunks` to `'all'`. We can do it safely because
407409
our PHP consumer library handles the enqueue.
408410

411+
## `compileNodeModules` (`object`)
412+
413+
Determines how `node_modules` is compiled during development and production mode.
414+
If this is not present, then `node_modules` is compiled in both dev and prod.
415+
However it can be configured like this.
416+
417+
```js
418+
module.exports = {
419+
// ...
420+
compileNodeModules: {
421+
dev: false,
422+
prod: true,
423+
},
424+
};
425+
```
426+
409427
## `watch` (`string`)
410428

411429
[Glob pattern](https://github.com/micromatch/micromatch) to watch additional

0 commit comments

Comments
 (0)