chore(dependencies): switch from es6-shim to core-js (#10884)
This commit is contained in:

committed by
Victor Berchet

parent
fc2fe00d16
commit
66df335998
@ -89,4 +89,4 @@ Depending on if you are using Angular bundles or not you can either use RxJS bun
|
||||
|
||||
## ES6 shims (optional)
|
||||
|
||||
Users of pre-ES6 browsers might need to add an ES6 shim (e.g. [es6-shim](https://github.com/paulmillr/es6-shim))
|
||||
Users of pre-ES6 browsers might need to add an ES6 shim (e.g. [core-js](https://github.com/zloirock/core-js))
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
// Index to be used if Http is ever configured as a standalone npm package.
|
||||
// require('reflect-metadata');
|
||||
// require('es6-shim');
|
||||
// require('core-js');
|
||||
// import {HTTP_PROVIDERS, JSONP_PROVIDERS, Http, Jsonp} from './http';
|
||||
// import {Injector} from '@angular/core';
|
||||
// export * from './http';
|
||||
|
@ -1,17 +0,0 @@
|
||||
{
|
||||
"name": "angular2",
|
||||
"version": "<%= packageJson.version %>",
|
||||
"description": "Angular 2 - a web framework for modern web apps",
|
||||
"homepage": "<%= packageJson.homepage %>",
|
||||
"bugs": "<%= packageJson.bugs %>",
|
||||
"contributors": <%= JSON.stringify(packageJson.contributors) %>,
|
||||
"license": "<%= packageJson.license %>",
|
||||
"repository": <%= JSON.stringify(packageJson.repository) %>,
|
||||
"devDependencies": <%= JSON.stringify(packageJson.defaultDevDependencies) %>,
|
||||
"peerDependencies": {
|
||||
"es6-shim": "<%= packageJson.dependencies['es6-shim'] %>",
|
||||
"reflect-metadata": "<%= packageJson.dependencies['reflect-metadata'] %>",
|
||||
"rxjs": "<%= packageJson.dependencies['rxjs'] %>",
|
||||
"zone.js": "<%= packageJson.dependencies['zone.js'] %>"
|
||||
}
|
||||
}
|
@ -10,7 +10,7 @@ module.exports = function(config) {
|
||||
|
||||
files: [
|
||||
// Polyfills.
|
||||
'node_modules/es6-shim/es6-shim.js',
|
||||
'node_modules/core-js/client/core.js',
|
||||
'node_modules/reflect-metadata/Reflect.js',
|
||||
'shims_for_IE.js',
|
||||
|
||||
|
Reference in New Issue
Block a user