Skip to content

Commit 6c8940e

Browse files
authored
docs(migrate): Fix some grammatical errors in 5.mdx (#5290)
1 parent 570c5ce commit 6c8940e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/content/migrate/5.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ contributors:
1010
- rramaa
1111
- chenxsan
1212
- jamesgeorge007
13+
- getsnoopy
1314
---
1415

1516
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);
179180
- This doesn't apply to the `webpack(..., callback)` form which automatically closes.
180181
- 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.
181182

182-
### Run a single build and follow advises
183+
### Run a single build and follow advice
183184

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.
185186

186187
Repeat the following steps until you solved at least level 3 or 4:
187188

@@ -203,7 +204,7 @@ Repeat the following steps until you solved at least level 3 or 4:
203204

204205
- Level 5: **Runtime Errors**.
205206

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:
207208

208209
- `process` is not defined.
209210
- 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:
221222
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).
222223

223224
- 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.
225226

226227
- Level 7: **Performance issues**.
227228

0 commit comments

Comments
 (0)