Skip to content

Commit 164c97b

Browse files
authored
docs(plugins): Replaced jargon words with better equivalents (#5291)
1 parent 6c8940e commit 164c97b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/plugins/split-chunks-plugin.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ When trying to fulfill the last two conditions, bigger chunks are preferred.
4848

4949
webpack provides a set of options for developers that want more control over this functionality.
5050

51-
W> The default configuration was chosen to fit web performance best practices, but the optimal strategy for your project might differ. If you're changing the configuration, you should measure the impact of your changes to ensure there's a real benefit.
51+
W> The default configuration was chosen to fit web performance best practices, but the optimal strategy for your project might differ. If you're changing the configuration, you should measure the effect of your changes to ensure there's a real benefit.
5252

5353
## `optimization.splitChunks`
5454

@@ -200,7 +200,7 @@ Assign modules to a cache group by module layer.
200200
`number = 0`
201201

202202
Using `maxSize` (either globally `optimization.splitChunks.maxSize` per cache group `optimization.splitChunks.cacheGroups[x].maxSize` or for the fallback cache group `optimization.splitChunks.fallbackCacheGroup.maxSize`) tells webpack to try to split chunks bigger than `maxSize` bytes into smaller parts. Parts will be at least `minSize` (next to `maxSize`) in size.
203-
The algorithm is deterministic and changes to the modules will only have local impact. So that it is usable when using long term caching and doesn't require records. `maxSize` is only a hint and could be violated when modules are bigger than `maxSize` or splitting would violate `minSize`.
203+
The algorithm is deterministic and changes to the modules will only have local effects. So that it is usable when using long term caching and doesn't require records. `maxSize` is only a hint and could be violated when modules are bigger than `maxSize` or splitting would violate `minSize`.
204204

205205
When the chunk has a name already, each part will get a new name derived from that name. Depending on the value of `optimization.splitChunks.hidePathInfo` it will add a key derived from the first module name or a hash of it.
206206

@@ -317,7 +317,7 @@ A module can belong to multiple cache groups. The optimization will prefer the c
317317

318318
`boolean = true`
319319

320-
If the current chunk contains modules already split out from the main bundle, it will be reused instead of a new one being generated. This can impact the resulting file name of the chunk.
320+
If the current chunk contains modules already split out from the main bundle, it will be reused instead of a new one being generated. This can affect the resulting file name of the chunk.
321321

322322
**webpack.config.js**
323323

0 commit comments

Comments
 (0)