From c4a97207308396190bb2c0719429f9c84d134d68 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 5 Apr 2016 07:57:49 +1200 Subject: [PATCH] Fix IE support by using babelify transforms --- gulpfile.js | 3 +- javascript/dist/bundle-legacy.js | 2 +- npm-shrinkwrap.json | 3262 ++++++++++++++++++++++++++++-- package.json | 2 + 4 files changed, 3053 insertions(+), 216 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 54c53833..96ef37c1 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -68,7 +68,8 @@ if (isDev) { } var babelifyOptions = { - presets: ['es2015', 'react'], + presets: ['es2015', 'es2015-ie', 'react'], + plugins: ['transform-object-assign'], ignore: /(node_modules|thirdparty)/, comments: false }; diff --git a/javascript/dist/bundle-legacy.js b/javascript/dist/bundle-legacy.js index 8d6e5e35..f77a03ea 100644 --- a/javascript/dist/bundle-legacy.js +++ b/javascript/dist/bundle-legacy.js @@ -1,2 +1,2 @@ -!function t(e,n,i){function a(o,s){if(!n[o]){if(!e[o]){var d="function"==typeof require&&require;if(!s&&d)return d(o,!0);if(r)return r(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};e[o][0].call(c.exports,function(t){var n=e[o][1][t];return a(n?n:t)},c,c.exports,t,e,n,i)}return n[o].exports}for(var r="function"==typeof require&&require,o=0;o0&&(e._addActions(),this.bind("change",function(n){var r=e.data("OrigVal"),o=e.val();e.data("OrigVal",o),0===i.val().indexOf(i.data("defaultUrl"))&&""==a.val()?e.updateURLSegment(o):t(".update",e.parent()).show(),e.updateRelatedFields(o,r),e.updateBreadcrumbLabel(o)})),this._super()},onunmatch:function(){this._super()},updateRelatedFields:function(e,n){this.parents("form").find("input[name=MetaTitle], input[name=MenuTitle]").each(function(){var i=t(this);i.val()==n&&(i.val(e),i.updatedRelatedFields&&i.updatedRelatedFields())})},updateURLSegment:function(e){var n=t("input:text[name=URLSegment]",this.closest("form")),i=n.closest(".field.urlsegment"),a=t(".update",this.parent());i.update(e),a.is(":visible")&&a.hide()},updateBreadcrumbLabel:function(e){var n=(t(".cms-edit-form input[name=ID]").val(),t("span.cms-panel-link.crumb"));e&&""!=e&&n.text(e)},_addActions:function(){var e,n=this;e=t("