docs: complete es6-shim to core-js migration

closes #1442
This commit is contained in:
Foxandxss 2016-05-20 02:35:19 +02:00 committed by Ward Bell
parent 3324bd944d
commit bd52aa3f34
8 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@
<!-- #docregion libraries -->
<!-- #docregion ie-polyfills -->
<!-- IE required polyfill -->
<script src="node_modules/client/shim.min.js"></script>
<script src="node_modules/core-js/client/shim.min.js"></script>
<!-- #enddocregion ie-polyfills -->
<script src="node_modules/zone.js/dist/zone.js"></script>

View File

@ -11,7 +11,7 @@
<!-- #docregion libraries -->
<!-- #docregion ie-polyfills -->
<!-- Polyfill(s) for older browsers -->
<script src="node_modules/client/shim.min.js"></script>
<script src="node_modules/core-js/client/shim.min.js"></script>
<!-- #enddocregion ie-polyfills -->
<script src="node_modules/zone.js/dist/zone.js"></script>

View File

@ -1,7 +1,7 @@
// #docregion
Error.stackTraceLimit = Infinity;
require('es6-shim');
require('core-js/es6');
require('reflect-metadata');
require('zone.js/dist/zone');

View File

@ -17,7 +17,7 @@
"@angular/platform-browser": "2.0.0-rc.1",
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
"@angular/router-deprecated": "2.0.0-rc.1",
"es6-shim": "^0.35.0",
"core-js": "^2.4.0",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.6",
"zone.js": "0.6.12"

View File

@ -1,5 +1,5 @@
// #docregion
import 'es6-shim';
import 'core-js/es6';
import 'reflect-metadata';
require('zone.js/dist/zone');

View File

@ -1,6 +1,6 @@
{
"ambientDependencies": {
"es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654",
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160412134438",
"node": "registry:dt/node#4.0.0+20160509154515"
}

View File

@ -103,7 +103,7 @@ a(id="polyfills")
:marked
See "[Why peerDependencies?](#why-peer-dependencies)" below for background on this requirement.
:marked
***es6-shim*** - monkey patches the global context (window) with essential features of ES2015 (ES6).
***core-js*** - monkey patches the global context (window) with essential features of ES2015 (ES6).
Developers may substitute an alternative polyfill that provides the same core APIs.
This dependency should go away once these APIs are implemented by all supported ever-green browsers.

View File

@ -362,7 +362,7 @@ h2#index Step 4: Add #[code index.html]
We loaded the following scripts
+makeExcerpt('index.html', 'libraries')
:marked
We begin with es6-shim which monkey patches the global context (window) with essential features of ES2015 (ES6).
We begin with core-js's es6-shim which monkey patches the global context (window) with essential features of ES2015 (ES6).
Next are the polyfills for Angular2, `zone.js` and `reflect-metadata`.
Then the [SystemJS](#systemjs) library for module loading.