]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Workaround issue leading to customizer js fail
authorKevin Ball <kmball11@gmail.com>
Wed, 28 Jun 2017 18:58:59 +0000 (11:58 -0700)
committerKevin Ball <kmball11@gmail.com>
Wed, 28 Jun 2017 18:58:59 +0000 (11:58 -0700)
customizer/lib/js.js

index 8cd110c78e0f394b1973040fb6636ac0adcae99e..4f157efb79059d8a6ff3dea2ca09cd20b7032c40 100644 (file)
@@ -18,7 +18,11 @@ module.exports = function(config, modules) {
   var dir = path.resolve(__dirname, '../../js/');
   var entry = "import $ from 'jquery';\n" +
               "import { Foundation } from '" + dir + "/foundation.core';\n" +
-              "Foundation.addToJquery($);\n";
+              "Foundation.addToJquery($);\n" +
+              "import { MediaQuery } from '" + dir + "/foundation.util.mediaQuery';\n" +
+              "Foundation.MediaQuery = MediaQuery;\n";
+
+  // last 2 pieces work around https://github.com/zurb/foundation-sites/issues/10287
 
   var libraries = [];