From 5218877cf1bca07e85465d10a3fc05f226dbc607 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 27 Dec 2016 09:09:36 -0500 Subject: [PATCH] Import babel polyfill --- auto_tests/coverage.html | 3 --- auto_tests/runner.html | 3 --- package.json | 5 ++++- src/dygraph.js | 4 ++++ 4 files changed, 8 insertions(+), 7 deletions(-) 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'; -- 2.7.4