From 4e8afa18dabe24e9a8de3e5c55453026d40e1cb7 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 9 Nov 2014 16:34:21 +1100 Subject: [PATCH] move Polyfill from caveats --- README.md | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index ae8307f765..c3d8e77127 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ It's as easy as: - [Browser](#browser) - [Modules](#modules) - [Caveats](#caveats) +- [Polyfill](#polyfill) - [Optional runtime](#optional-runtime) - [Differences](#differences) @@ -289,23 +290,6 @@ Alternatively see [Modules](MODULES.md) for all other supported module formattin ## Caveats -### Polyfill - -6to5 includes a polyfill that includes the -[regenerator runtime](https://github.com/facebook/regenerator/blob/master/runtime.js) and the -[es6-shim](https://github.com/paulmillr/es6-shim) and -[es6-symbol](https://github.com/medikoo/es6-symbol) polyfills. - -#### Node - -```javascript -require("6to5/polyfill"); -``` - -#### Browser - -Available from the `polyfill.js` within the 6to5 directory of an npm release. - ### For-of A polyfill is required for for-of functionality that implements `Symbol` and @@ -343,6 +327,23 @@ class Bar extends Foo { The [regenerator runtime](https://github.com/facebook/regenerator/blob/master/runtime.js) and an [ES6 polyfill](#polyfill) are required in order for generators to work. +## Polyfill + +6to5 includes a polyfill that includes the +[regenerator runtime](https://github.com/facebook/regenerator/blob/master/runtime.js) and the +[es6-shim](https://github.com/paulmillr/es6-shim) and +[es6-symbol](https://github.com/medikoo/es6-symbol) polyfills. + +### Node + +```javascript +require("6to5/polyfill"); +``` + +### Browser + +Available from the `polyfill.js` within the 6to5 directory of an npm release. + ## Optional runtime 6to5 has a few helper functions that'll be placed at the top of the generated