From: Dan Vanderkam Date: Tue, 27 Dec 2016 14:09:36 +0000 (-0500) Subject: Import babel polyfill X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=5218877cf1bca07e85465d10a3fc05f226dbc607;p=dygraphs.git Import babel polyfill --- diff --git a/auto_tests/coverage.html b/auto_tests/coverage.html index e8cd24c..adf2639 100644 --- a/auto_tests/coverage.html +++ b/auto_tests/coverage.html @@ -9,9 +9,6 @@
- - - diff --git a/auto_tests/runner.html b/auto_tests/runner.html index 2f48d5b..7ceb0d0 100644 --- a/auto_tests/runner.html +++ b/auto_tests/runner.html @@ -9,9 +9,6 @@
- - - diff --git a/package.json b/package.json index 48b6534..c5a8d0b 100644 --- a/package.json +++ b/package.json @@ -60,5 +60,8 @@ }, "pre-commit": [ "tests-ok" - ] + ], + "dependencies": { + "core-js": "^2.4.1" + } } diff --git a/src/dygraph.js b/src/dygraph.js index 13c6744..d1629db 100644 --- a/src/dygraph.js +++ b/src/dygraph.js @@ -43,6 +43,10 @@ */ +// Polyfills +import 'core-js/es6/symbol'; +import 'core-js/fn/symbol/iterator'; + import DygraphLayout from './dygraph-layout'; import DygraphCanvasRenderer from './dygraph-canvas'; import DygraphOptions from './dygraph-options';