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',
|
||||
|
||||
|
@ -9,7 +9,7 @@ module.exports = function (config) {
|
||||
frameworks: ['jasmine'],
|
||||
|
||||
files: [
|
||||
'../../node_modules/es6-shim/es6-shim.js',
|
||||
'../../node_modules/core-js/client/core.js',
|
||||
'../../node_modules/angular/angular.js',
|
||||
'../../node_modules/angular-animate/angular-animate.js',
|
||||
'../../node_modules/angular-mocks/angular-mocks.js',
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
require('reflect-metadata');
|
||||
require('es6-shim');
|
||||
require('core-js');
|
||||
module.exports = require('./benchpress.js');
|
||||
// when bundling benchpress to one file, this is used
|
||||
// for getting exports out of browserify's scope.
|
||||
|
@ -10,7 +10,7 @@
|
||||
"repository": <%= JSON.stringify(packageJson.repository) %>,
|
||||
"dependencies": {
|
||||
"angular2": "<%= packageJson.version %>",
|
||||
"es6-shim": "<%= packageJson.dependencies['es6-shim'] %>",
|
||||
"core-js": "<%= packageJson.dependencies['core-js'] %>",
|
||||
"reflect-metadata": "<%= packageJson.dependencies['reflect-metadata'] %>",
|
||||
"rxjs": "<%= packageJson.dependencies['rxjs'] %>",
|
||||
"selenium-webdriver": "<%= packageJson.dependencies['selenium-webdriver'] %>",
|
||||
|
@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
require('es6-shim/es6-shim.js');
|
||||
require('core-js');
|
||||
require('reflect-metadata');
|
||||
var testHelper = require('../../src/firefox_extension/lib/test_helper.js');
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
(function(global: any /** TODO #9100 */) {
|
||||
|
||||
writeScriptTag('/all/playground/vendor/es6-shim.js');
|
||||
writeScriptTag('/all/playground/vendor/core.js');
|
||||
writeScriptTag('/all/playground/vendor/zone.js');
|
||||
writeScriptTag('/all/playground/vendor/long-stack-trace-zone.js');
|
||||
writeScriptTag('/all/playground/vendor/system.src.js');
|
||||
|
@ -1,4 +1,4 @@
|
||||
importScripts("../../../vendor/es6-shim.js",
|
||||
importScripts("../../../vendor/core.js",
|
||||
"../../../vendor/zone.js",
|
||||
"../../../vendor/long-stack-trace-zone.js",
|
||||
"../../../vendor/system.src.js",
|
||||
|
@ -1,4 +1,4 @@
|
||||
importScripts("../../../vendor/es6-shim.js",
|
||||
importScripts("../../../vendor/core.js",
|
||||
"../../../vendor/zone.js",
|
||||
"../../../vendor/long-stack-trace-zone.js",
|
||||
"../../../vendor/system.src.js",
|
||||
|
@ -1,4 +1,4 @@
|
||||
importScripts("../../../vendor/es6-shim.js",
|
||||
importScripts("../../../vendor/core.js",
|
||||
"../../../vendor/zone.js",
|
||||
"../../../vendor/long-stack-trace-zone.js",
|
||||
"../../../vendor/system.src.js",
|
||||
|
@ -1,4 +1,4 @@
|
||||
importScripts("../../../vendor/es6-shim.js",
|
||||
importScripts("../../../vendor/core.js",
|
||||
"../../../vendor/zone.js",
|
||||
"../../../vendor/long-stack-trace-zone.js",
|
||||
"../../../vendor/system.src.js",
|
||||
|
@ -1,4 +1,4 @@
|
||||
importScripts("../../../vendor/es6-shim.js",
|
||||
importScripts("../../../vendor/core.js",
|
||||
"../../../vendor/zone.js",
|
||||
"../../../vendor/long-stack-trace-zone.js",
|
||||
"../../../vendor/system.src.js",
|
||||
|
@ -1,4 +1,4 @@
|
||||
importScripts("../../../vendor/es6-shim.js",
|
||||
importScripts("../../../vendor/core.js",
|
||||
"../../../vendor/zone.js",
|
||||
"../../../vendor/long-stack-trace-zone.js",
|
||||
"../../../vendor/system.src.js",
|
||||
|
Reference in New Issue
Block a user