Skip to content

Commit 9ae77ab

Browse files
authored
add missing items from user issues (#4064)
1 parent a5b235f commit 9ae77ab

File tree

1 file changed

+2
-1
lines changed
  • src/content/migrate

1 file changed

+2
-1
lines changed

src/content/migrate/5.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Yarn: `yarn add webpack@next -D`
106106
- When using `[hash]` placeholder in webpack configuration, consider changing it to `[contenthash]`. It is not the same, but proven to be more effective.
107107
- If you are using Yarn's PnP and the `pnp-webpack-plugin`, we have good news: it is supported by default now. You have to remove it from the configuration.
108108
- If you are using `IgnorePlugin` with a regular expression as argument, it takes an `options` object now: `new IgnorePlugin({ resourceRegExp: /regExp/ })`.
109+
- If you are using `node.something: 'empty'` replace it with `resolve.fallback.something: false`.
109110

110111
If you were using WebAssembly via import, you should follow this two step process:
111112

@@ -115,7 +116,7 @@ If you were using WebAssembly via import, you should follow this two step proces
115116
Reconsider `optimization.splitChunks`:
116117

117118
- It's recommended to use either the defaults or `optimization.splitChunks: { chunks: 'all' }`.
118-
- When using a custom configuration, replace `name` with `idHint`.
119+
- When using a custom configuration, drop `name: false` and replace `name: string | function` with `idHint: string | function`.
119120
- It was possible to turn off the defaults by setting `optimization.splitChunks: { default: false, vendors: false }`. We don't recommend doing this, but if you really want to get the same effect in webpack 5: `optimization.splitChunks: { default: false, defaultVendors: false }`.
120121

121122
Consider removing defaults:

0 commit comments

Comments
 (0)