From 5115fbd2400e5a8ed22997fbac407e3b551d511f Mon Sep 17 00:00:00 2001 From: Glen Cheney Date: Tue, 9 Apr 2019 23:05:03 -0700 Subject: [PATCH] Replace core-js with polyfill.io core-js's v3 release removed the `shim.js` file, breaking polyfilling because a version was not specified in the URL. --- docs/_includes/scripts.html | 2 +- docs/js/require-main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_includes/scripts.html b/docs/_includes/scripts.html index 2c5417e..4ac7039 100644 --- a/docs/_includes/scripts.html +++ b/docs/_includes/scripts.html @@ -1,7 +1,7 @@ {% if page.requirejs %} {% else %} - + diff --git a/docs/js/require-main.js b/docs/js/require-main.js index e0f2f59..edb4de9 100644 --- a/docs/js/require-main.js +++ b/docs/js/require-main.js @@ -2,7 +2,7 @@ requirejs.config({ baseUrl: window.site_url + '/js', paths: { shufflejs: '../dist/shuffle', - polyfill: 'https://unpkg.com/core-js/client/shim.min', + polyfill: 'https://polyfill.io/v3/polyfill.min.js?features=default%2Ces5%2Ces6%2Ces7', }, // Load the polyfill before Shuffle.