Files
meteor/packages/ecmascript-runtime-server/runtime.js
Seba Kerckhof 2dc21ba37f Update core-js imports in es runtime packages (#10760)
As far as I can tell, object.entries and object.values were already supported
on all browsers supporting native async/await.
This is the current cutoff between modern/legacy

ref: https://github.com/meteor/babel-preset-meteor/blob/master/modern.js
https://caniuse.com/#search=object.entries
https://caniuse.com/#search=object.values

Furthermore I added following new ES2018/2019 features:
Object.fromEntries / String.prototype.trimStart / String.prototype.trimEnd
2019-11-06 10:59:21 -05:00

25 lines
670 B
JavaScript

// The ecmascript-runtime-server package depends on its own copy of
// core-js using Npm.depends, so we don't have to check that core-js is
// available (as we do in ecmascript-runtime-client/runtime.js).
// List of polyfills generated by babel-preset-env with the following
// .babelrc configuration:
//
// {
// "presets": [
// ["env", {
// "targets": {
// "node": 8
// },
// "modules": false,
// "polyfill": true,
// "useBuiltIns": true
// }]
// ]
// }
//
// Note that the es6.reflect.* and es6.typed.* modules have been commented
// out for bundle size reasons.
require("core-js/modules/es.symbol.async-iterator");