Files
meteor/packages/ecmascript-runtime-server/runtime.js
Ben Newman 653b12268e Adjust ecmascript-runtime-server polyfill list for Node 8.
This package is almost unnecessary now, though I suspect more polyfills
will be added in the future, so we might as well keep it.

Since we're loading so many fewer core-js modules, this change saves about
50ms of server startup time. That might not seem like much, but it's a
measurable savings that benefits every save-rebuild-restart-reload cycle.
2017-06-19 16:36:53 -04:00

26 lines
713 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/es7.string.pad-start");
require("core-js/modules/es7.string.pad-end");