Skip to content

Commit 16cf3d0

Browse files
author
Eugene Kopich
authored
docs(plugin-legacy): fix typos (#1422) [skip ci]
1 parent 9426a0b commit 16cf3d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/plugin-legacy/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ By default, this plugin will:
88

99
- Generate a corresponding legacy chunk for every chunk in the final bundle, transformed with [@babel/preset-env](https://babeljs.io/docs/en/babel-preset-env) and emitted as [SystemJS modules](https://github.com/systemjs/systemjs) (code splitting is still supported!).
1010

11-
- Generate a polyfill chunk including SystemJS runtime, and any necessary polyfills determined by specified browser targets and **acutal usage** in the bundle.
11+
- Generate a polyfill chunk including SystemJS runtime, and any necessary polyfills determined by specified browser targets and **actual usage** in the bundle.
1212

13-
- Inject `<script nomdule>` tags into generated HTML to conditionally load the polyfills and legacy bundle only in browsers without native ESM support.
13+
- Inject `<script nomodule>` tags into generated HTML to conditionally load the polyfills and legacy bundle only in browsers without native ESM support.
1414

1515
## Usage
1616

@@ -43,7 +43,7 @@ export default {
4343
- **Type:** `boolean | string[]`
4444
- **Default:** `true`
4545

46-
By default, a polyfills chunks is generated based on the target browser ranges and actual usage in the final bundle (detected via `@babel/preset-env`'s `useBuiltIns: 'usage'`).
46+
By default, a polyfills chunks are generated based on the target browser ranges and actual usage in the final bundle (detected via `@babel/preset-env`'s `useBuiltIns: 'usage'`).
4747

4848
Set to a list of strings to explicitly control which polyfills to include. See [Polyfill Specifiers](#polyfill-specifiers) for details.
4949

@@ -70,9 +70,9 @@ export default {
7070

7171
Set to a list of strings to explicitly control which polyfills to include. See [Polyfill Specifiers](#polyfill-specifiers) for details.
7272

73-
Note it is **not recommended** to use the `true` value (which uses auto detection) because `core-js@3` is very aggressive in polyfill inclusions due to all the bleeding edge features it supports. Even when targeting native ESM support, it injects 15kb of polyfills!
73+
Note it is **not recommended** to use the `true` value (which uses auto-detection) because `core-js@3` is very aggressive in polyfill inclusions due to all the bleeding edge features it supports. Even when targeting native ESM support, it injects 15kb of polyfills!
7474

75-
If you don't have hard reliance on bleeding edge runtime features, it is not that hard to avoid having to use polyfills in the modern build altogether. Alternatively, consider using an on-demand service like [Polyfill.io](https://polyfill.io/v3/) to only inject necessary polyfills based on actual browser useragents (most modern brwosers will need nothing!).
75+
If you don't have hard reliance on bleeding edge runtime features, it is not that hard to avoid having to use polyfills in the modern build altogether. Alternatively, consider using an on-demand service like [Polyfill.io](https://polyfill.io/v3/) to only inject necessary polyfills based on actual browser user-agents (most modern browsers will need nothing!).
7676

7777
### `renderLegacyChunks`
7878

@@ -96,7 +96,7 @@ export default {
9696
}
9797
```
9898

99-
## Polyfill Sepcifiers
99+
## Polyfill Specifiers
100100

101101
Polyfill specifier strings for `polyfills` and `modernPolyfills` can be either of the following:
102102

0 commit comments

Comments
 (0)