Skip to content

Commit

Permalink
revert esnext.string.match-all in some entry points for fix autogen…
Browse files Browse the repository at this point in the history
…eration of `core-js-compat/entries` and backward `preset-env` compatibility

babel/babel#9998 (comment)
  • Loading branch information
zloirock committed May 20, 2019
1 parent 27ea2ee commit 2352725
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core-js/features/string/index.js
@@ -1,4 +1,6 @@
module.exports = require('../../es/string');

require('../../modules/esnext.string.at');
// TODO: remove from `core-js@4`
require('../../modules/esnext.string.match-all');
require('../../modules/esnext.string.replace-all');
3 changes: 3 additions & 0 deletions packages/core-js/features/string/match-all.js
@@ -1 +1,4 @@
// TODO: remove from `core-js@4`
require('../../modules/esnext.string.match-all');

module.exports = require('../../es/string/match-all');
2 changes: 2 additions & 0 deletions packages/core-js/features/string/virtual/index.js
@@ -1,4 +1,6 @@
module.exports = require('../../../es/string/virtual');

require('../../../modules/esnext.string.at');
// TODO: remove from `core-js@4`
require('../../../modules/esnext.string.match-all');
require('../../../modules/esnext.string.replace-all');
3 changes: 3 additions & 0 deletions packages/core-js/features/string/virtual/match-all.js
@@ -1 +1,4 @@
// TODO: remove from `core-js@4`
require('../../../modules/esnext.string.match-all');

module.exports = require('../../../es/string/virtual/match-all');
1 change: 1 addition & 0 deletions packages/core-js/proposals/string-match-all.js
@@ -1,3 +1,4 @@
// TODO: Remove from `core-js@4`
require('../modules/es.string.match-all');
require('../modules/es.symbol.match-all');
require('../modules/esnext.string.match-all');

0 comments on commit 2352725

Please sign in to comment.