Skip to content

Commit b212474

Browse files
committed
1 parent 5269afa commit b212474

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- Added the missed `(es|stable)/instance/replace-all` entries
1616
- Updated compat data mapping for Opera - from Opera 69, the difference with Chrome versions increased to 14
1717
- Compat data mapping for modern Android WebView to Chrome moved from targets parser directly to compat data
18+
- Depracate `core-js-builder` `blacklist` option in favor of `exclude`
1819

1920
##### 3.7.0 - 2020.11.06
2021
- `String#replaceAll` moved to the stable ES, [per June TC39 meeting](https://github.com/tc39/notes/blob/master/meetings/2020-06/june-2.md#stringprototypereplaceall-for-stage-4)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ It does not work with some features. Also, if you change the default behaviour,
322322

323323
### Custom build[](#index)
324324

325-
For some cases could be useful adding a _exclude_ of features or generation a polyfill for target engines. You could use [`core-js-builder`](/packages/core-js-builder) package for that.
325+
For some cases could be useful to exclude some `core-js` features or generate a polyfill for target engines. You could use [`core-js-builder`](/packages/core-js-builder) package for that.
326326

327327
### Compatibility data[](#index)
328328

packages/core-js-builder/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
For some cases could be useful adding a _exclude_ list of features or generation a polyfill for target engines. This API helps conditionally include or exclude certain parts of [`core-js`](https://github.com/zloirock/core-js), use `browserslist` queries from [`core-js-compat`](https://github.com/zloirock/core-js/tree/master/packages/core-js-compat) package.
2-
3-
> **NOTE:**
4-
> `blacklist` parameter is now deprecated in favor of `exclude`. And will be removed in the next major version. You can't use both parameters since `blacklist` has precedence.
1+
For some cases could be useful to exclude some `core-js` features or generate a polyfill for target engines. This API helps conditionally include or exclude certain parts of [`core-js`](https://github.com/zloirock/core-js), use `browserslist` queries from [`core-js-compat`](https://github.com/zloirock/core-js/tree/master/packages/core-js-compat) package.
52

63
```js
74
require('core-js-builder')({
85
modules: ['es', 'esnext.reflect', 'web'], // modules / namespaces, by default - all `core-js` modules
9-
exclude: ['es.math', 'es.number.constructor'], // exclude of modules / namespaces, by default - empty list
6+
exclude: ['es.math', 'es.number.constructor'], // a blacklist of modules / namespaces, by default - empty list
107
targets: '> 0.5%', // optional browserslist query
118
filename: './my-core-js-bundle.js', // optional target filename, if it's missed a file will not be created
129
}).then(code => { // code of result polyfill

0 commit comments

Comments
 (0)