setup-php/node_modules/core-js-compat
2019-09-20 21:54:46 +05:30
..
data.json Improve code quality and write tests 2019-09-20 21:54:46 +05:30
entries.json Improve code quality and write tests 2019-09-20 21:54:46 +05:30
get-modules-list-for-target-version.js Improve code quality and write tests 2019-09-20 21:54:46 +05:30
index.js Improve code quality and write tests 2019-09-20 21:54:46 +05:30
LICENSE Improve code quality and write tests 2019-09-20 21:54:46 +05:30
modules-by-versions.json Improve code quality and write tests 2019-09-20 21:54:46 +05:30
package.json Improve code quality and write tests 2019-09-20 21:54:46 +05:30
README.md Improve code quality and write tests 2019-09-20 21:54:46 +05:30

core-js-compat package contains data about the necessity of core-js modules and API for getting a list of required core-js modules by browserslist query.

const {
  list,              // array of required modules
  targets,           // object with targets for each module
} = require('core-js-compat')({
  targets: '> 2.5%', // browserslist query
  filter: 'es.',     // optional filter - string-prefix, regexp or list of modules
});

console.log(targets);
/* =>
{
  'es.symbol.description': { ios: '12.0-12.1' },
  'es.array.reverse': { ios: '12.0-12.1' },
  'es.string.replace': { firefox: '63', ios: '12.0-12.1' },
  'es.string.trim': { ios: '12.0-12.1' },
  'es.promise': { firefox: '63' },
  'es.promise.finally': { firefox: '63' },
  'es.array-buffer.slice': { ios: '12.0-12.1' },
  'es.typed-array.int8-array': { ios: '12.0-12.1' },
  'es.typed-array.uint8-array': { ios: '12.0-12.1' },
  'es.typed-array.uint8-clamped-array': { ios: '12.0-12.1' },
  'es.typed-array.int16-array': { ios: '12.0-12.1' },
  'es.typed-array.uint16-array': { ios: '12.0-12.1' },
  'es.typed-array.int32-array': { ios: '12.0-12.1' },
  'es.typed-array.uint32-array': { ios: '12.0-12.1' },
  'es.typed-array.float32-array': { ios: '12.0-12.1' },
  'es.typed-array.float64-array': { ios: '12.0-12.1' },
  'es.typed-array.from': { ios: '12.0-12.1' },
  'es.typed-array.of': { ios: '12.0-12.1' }
}
*/

If you want to add new / update data about modules required for target engines, follow this instruction.