Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit bd52aa3

Browse files
Foxandxsswardbell
authored andcommitted
docs: complete es6-shim to core-js migration
closes #1442
1 parent 3324bd9 commit bd52aa3

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

public/docs/_examples/quickstart/js/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<!-- #docregion libraries -->
1111
<!-- #docregion ie-polyfills -->
1212
<!-- IE required polyfill -->
13-
<script src="node_modules/client/shim.min.js"></script>
13+
<script src="node_modules/core-js/client/shim.min.js"></script>
1414
<!-- #enddocregion ie-polyfills -->
1515

1616
<script src="node_modules/zone.js/dist/zone.js"></script>

public/docs/_examples/quickstart/ts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<!-- #docregion libraries -->
1212
<!-- #docregion ie-polyfills -->
1313
<!-- Polyfill(s) for older browsers -->
14-
<script src="node_modules/client/shim.min.js"></script>
14+
<script src="node_modules/core-js/client/shim.min.js"></script>
1515
<!-- #enddocregion ie-polyfills -->
1616

1717
<script src="node_modules/zone.js/dist/zone.js"></script>

public/docs/_examples/webpack/ts/config/karma-test-shim.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// #docregion
22
Error.stackTraceLimit = Infinity;
33

4-
require('es6-shim');
4+
require('core-js/es6');
55
require('reflect-metadata');
66

77
require('zone.js/dist/zone');

public/docs/_examples/webpack/ts/package.webpack.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@angular/platform-browser": "2.0.0-rc.1",
1818
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
1919
"@angular/router-deprecated": "2.0.0-rc.1",
20-
"es6-shim": "^0.35.0",
20+
"core-js": "^2.4.0",
2121
"reflect-metadata": "0.1.2",
2222
"rxjs": "5.0.0-beta.6",
2323
"zone.js": "0.6.12"

public/docs/_examples/webpack/ts/src/polyfills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #docregion
2-
import 'es6-shim';
2+
import 'core-js/es6';
33
import 'reflect-metadata';
44
require('zone.js/dist/zone');
55

public/docs/_examples/webpack/ts/typings.1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"ambientDependencies": {
3-
"es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654",
3+
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
44
"jasmine": "registry:dt/jasmine#2.2.0+20160412134438",
55
"node": "registry:dt/node#4.0.0+20160509154515"
66
}

public/docs/ts/latest/guide/npm-packages.jade

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

public/docs/ts/latest/quickstart.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ h2#index Step 4: Add #[code index.html]
362362
We loaded the following scripts
363363
+makeExcerpt('index.html', 'libraries')
364364
:marked
365-
We begin with es6-shim which monkey patches the global context (window) with essential features of ES2015 (ES6).
365+
We begin with core-js's es6-shim which monkey patches the global context (window) with essential features of ES2015 (ES6).
366366
Next are the polyfills for Angular2, `zone.js` and `reflect-metadata`.
367367
Then the [SystemJS](#systemjs) library for module loading.
368368

0 commit comments

Comments
 (0)