You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/migrate/5.mdx
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ contributors:
10
10
- rramaa
11
11
- chenxsan
12
12
- jamesgeorge007
13
+
- getsnoopy
13
14
---
14
15
15
16
This guide aims to help you migrating to webpack 5 when using webpack directly. If you are using a higher level tool to run webpack, please refer to the tool for migration instructions.
@@ -179,9 +180,9 @@ console.log(pkg.version);
179
180
- This doesn't apply to the `webpack(..., callback)` form which automatically closes.
180
181
- This is optional if you use webpack in watching mode until the user ends the process. The idle phases in watch mode will be used for this kind of work.
181
182
182
-
### Run a single build and follow advises
183
+
### Run a single build and follow advice
183
184
184
-
Please make sure to read the building errors/warnings carefully. If there is no corresponding advise, please create an issue and we will try to resolve it.
185
+
Please make sure to read the building errors/warnings carefully. If there is no corresponding advice, please create an issue and we will try to resolve it.
185
186
186
187
Repeat the following steps until you solved at least level 3 or 4:
187
188
@@ -203,7 +204,7 @@ Repeat the following steps until you solved at least level 3 or 4:
203
204
204
205
- Level 5: **Runtime Errors**.
205
206
206
-
This is tricky. You probably have to debug to find the problem. A general advise is difficult here. But we do list some common advices below regarding Runtime Errors:
207
+
This is tricky. You probably have to debug to find the problem. General advice is difficult here. But we do list some common advice below regarding Runtime Errors:
207
208
208
209
-`process` is not defined.
209
210
- webpack 5 does no longer include a polyfill for this Node.js variable. Avoid using it in the frontend code.
@@ -221,7 +222,7 @@ Repeat the following steps until you solved at least level 3 or 4:
221
222
You probably get a lot of deprecation warnings. This is not directly a problem. Plugins need time to catch up with core changes. Please report these deprecations to the plugins. These deprecations are only warnings and the build will still work with only minor drawbacks (like less performance).
222
223
223
224
- You can hide deprecation warnings by running node with `--no-deprecation` flag, e.g.: `node --no-deprecation node_modules/webpack/bin/webpack.js`. This should only be a temporary workaround.
224
-
- Plugins and Loaders contributors can follow the advises in the deprecation messages to improve the code.
225
+
- Plugins and Loaders contributors can follow the advice in the deprecation messages to improve the code.
0 commit comments