From d40c01114df28af6b108d4e66b448261d34da6c7 Mon Sep 17 00:00:00 2001 From: Li Xinyang Date: Wed, 15 Mar 2017 07:39:31 +0800 Subject: [PATCH] Add code snippet for enabling polyfill (#118) * Add code snippet for enabling polyfill * Change babel config to correct key value --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 73e803f8..0361a94b 100755 --- a/README.md +++ b/README.md @@ -47,6 +47,16 @@ features that require the polyfill to work. To include it in your app, pass `includePolyfill: true` in your `ember-cli-babel` options. +```js +// ember-cli-build.js + +var app = new EmberApp(defaults, { + 'ember-cli-babel': { + includePolyfill: true + } +}); +``` + ### Features Out of the box without a polyfill the following ES6 features are enabled: