Skip to content

Commit

Permalink
use core-js/actual in the first readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Dec 18, 2021
1 parent c92f408 commit 064d140
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -30,7 +30,7 @@ Available as part of the Tidelift Subscription, [learn more](https://tidelift.co

[*Example of usage*](https://is.gd/XD4mRe):
```js
import 'core-js'; // <- at the top of your entry point
import 'core-js/actual'; // <- at the top of your entry point

Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
Expand Down Expand Up @@ -391,7 +391,7 @@ configurator({
useFeatureDetection: ['Map', 'Set'], // default behaviour
});

require('core-js');
require('core-js/actual');
```

It does not work with some features. Also, if you change the default behaviour, even `core-js` internals may not work correctly.
Expand Down Expand Up @@ -2221,7 +2221,7 @@ const configurator = require('core-js/configurator');

configurator({ USE_FUNCTION_CONSTRUCTOR: true });

require('core-js');
require('core-js/features/async-iterator');

(async function * () { /* empty */ })() instanceof AsyncIterator; // => true
```
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js-bundle/README.md
Expand Up @@ -24,7 +24,7 @@

[*Example of usage*](https://is.gd/XD4mRe):
```js
import 'core-js'; // <- at the top of your entry point
import 'core-js/actual'; // <- at the top of your entry point

Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js-pure/README.md
Expand Up @@ -24,7 +24,7 @@

[*Example of usage*](https://is.gd/XD4mRe):
```js
import 'core-js'; // <- at the top of your entry point
import 'core-js/actual'; // <- at the top of your entry point

Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/README.md
Expand Up @@ -24,7 +24,7 @@

[*Example of usage*](https://is.gd/XD4mRe):
```js
import 'core-js'; // <- at the top of your entry point
import 'core-js/actual'; // <- at the top of your entry point

Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
Expand Down

0 comments on commit 064d140

Please sign in to comment.