Skip to content

Commit e079afa

Browse files
committed
docs: fix typos in docs
1 parent afbb0b1 commit e079afa

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/content/blog/2020-10-10-webpack-5-release.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ This is true in general, but might not be always true during webpack or plugin d
587587

588588
Targets that only allow to startup a single file (like node, WebWorker, electron main) now supports loading the dependent pieces required for bootstrapping automatically by the runtime.
589589

590-
This allows using `opimization.splitChunks` for these targets with `chunks: "all"` and also `optimization.runtimeChunk`
590+
This allows using `optimization.splitChunks` for these targets with `chunks: "all"` and also `optimization.runtimeChunk`
591591

592592
Note that with targets where chunk loading is async, this makes initial evaluation async too. This can be an issue when using `output.library`, since the exported value is a Promise now.
593593

@@ -1293,7 +1293,7 @@ These dependencies are cheaper to process and webpack uses them when possible
12931293
- `Compilation.addModuleDependencies` removed
12941294
- `Compilation.prefetch` removed
12951295
- `Compilation.hooks.beforeHash` is now called after the hashes of modules are created
1296-
- **MIGRATION**: Use `Compiliation.hooks.beforeModuleHash` instead
1296+
- **MIGRATION**: Use `Compilation.hooks.beforeModuleHash` instead
12971297
- `Compilation.applyModuleIds` removed
12981298
- `Compilation.applyChunkIds` removed
12991299
- `Compiler.root` added, which points to the root compiler
@@ -1392,7 +1392,7 @@ These dependencies are cheaper to process and webpack uses them when possible
13921392
- `ExternalModule.external` removed
13931393
- `HarmonyInitDependency` removed
13941394
- `Dependency.getInitFragments` deprecated
1395-
- **MIGRATION**: Use `apply` `initFragements` instead
1395+
- **MIGRATION**: Use `apply` `initFragments` instead
13961396
- DependencyReference now takes a function to a module instead of a Module
13971397
- HarmonyImportSpecifierDependency.redirectedId removed
13981398
- **MIGRATION**: Use `setId` instead

src/content/blog/2020-12-08-roadmap-2021.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ We have to check whether it's possible to avoid potential conflicts.
160160
#### HTML as entrypoint
161161

162162
Following Parcels example, we also want to support HTML natively as entrypoints.
163-
Supporting that would be inline with the goal as web app optimizer, as web apps unusally start with a HTML.
163+
Supporting that would be inline with the goal as web app optimizer, as web apps usually start with an HTML document.
164164
It is also a huge developer experience improvement for beginners as many things can be inferred from the HTML.
165165

166166
Being in control of the generated HTML does also allow to optimize more aggressively by default.
@@ -182,7 +182,7 @@ This is something we want to look into for webpack, but also for terser, which i
182182
Node.js 14 has added support for the `exports` field in package.json to allow to define entrypoints of a package.
183183
Webpack 5 followed this, and even added additional conditions like `production/development`.
184184

185-
Shortly after that Node.js made further additionals to that, e.g. they also added an `imports` field for private imports.
185+
Shortly after that Node.js made further additions to that, e.g. they also added an `imports` field for private imports.
186186

187187
That's something we also want to add.
188188

src/content/configuration/devtool.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ T> Instead of using the `devtool` option you can also use `SourceMapDevToolPlugi
7474
| `hidden-*` addition | no reference to the SourceMap added. When SourceMap is not deployed, but should still be generated, e. g. for error reporting purposes. |
7575
| `nosources-*` addition | source code is not included in SourceMap. This can be useful when the original files should be referenced (further config options needed). |
7676

77-
T> We expect a certain pattern when validate devtool name, pay attention and dont mix up the sequence of devtool string. The pattern is: `[inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map`.
77+
T> We expect a certain pattern when validate devtool name, pay attention and don't mix up the sequence of devtool string. The pattern is: `[inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map`.
7878

7979
Some of these values are suited for development and some for production. For development you typically want fast Source Maps at the cost of bundle size, but for production you want separate Source Maps that are accurate and support minimizing.
8080

src/content/configuration/extending-configurations.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module.exports = {
106106
};
107107
```
108108

109-
## Overridding Configurations
109+
## Overriding Configurations
110110

111111
You can override configurations from the extended configuration by passing the same property in the configuration that extends it.
112112

src/content/configuration/output.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ module.exports = _entry_return_;
12881288
require('MyLibrary').doSomething();
12891289
```
12901290

1291-
If we specify `output.library.name` with `type: commmonjs2`, the return value of your entry point will be assigned to the `module.exports.[output.library.name]`.
1291+
If we specify `output.library.name` with `type: commonjs2`, the return value of your entry point will be assigned to the `module.exports.[output.library.name]`.
12921292

12931293
T> Wondering the difference between CommonJS and CommonJS2 is? While they are similar, there are some subtle differences between them that are not usually relevant in the context of webpack. (For further details, please [read this issue](https://github.com/webpack/webpack/issues/1114).)
12941294

src/content/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sort: -1
44
---
55

66
import FirstLeft from '../components/Splash/first/left.mdx';
7-
import FirstRigth from '../components/Splash/first/right.mdx';
7+
import FirstRight from '../components/Splash/first/right.mdx';
88
import SecondLeft from '../components/Splash/second/left.mdx';
99
import SecondRight from '../components/Splash/second/right.mdx';
1010

@@ -15,7 +15,7 @@ import SecondRight from '../components/Splash/second/right.mdx';
1515
<FirstLeft />
1616
</div>
1717
<div className="splash__right">
18-
<FirstRigth />
18+
<FirstRight />
1919
</div>
2020
</div>
2121

src/content/plugins/normal-module-replacement-plugin.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ new webpack.NormalModuleReplacementPlugin(resourceRegExp, newResource);
1919

2020
Note that the `resourceRegExp` is tested against the request you write in your code, not the resolved resource. For instance, `'./sum'` will be used to test instead of `'./sum.js'` when you have code `import sum from './sum'`.
2121

22-
Also please note that when using Windows, you have to accomodate for the different folder separator symbol. E.g. `/src\/environments\/environment\.ts/` won't work on Windows, you have to use `/src[\\/]environments[\\/]environment\.ts/,` instead.
22+
Also please note that when using Windows, you have to accommodate the different folder separator symbol. E.g. `/src\/environments\/environment\.ts/` won't work on Windows, you have to use `/src[\\/]environments[\\/]environment\.ts/,` instead.
2323

2424
## Basic Example
2525

0 commit comments

Comments
 (0)