From 886358932de8ff4b417123eab362bbb58469821e Mon Sep 17 00:00:00 2001 From: ivmartel Date: Wed, 19 Apr 2017 23:14:47 +0200 Subject: [PATCH] Add MagicWand dependency. --- resources/module/intro.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/resources/module/intro.js b/resources/module/intro.js index 18adf0f375..eab125bd12 100644 --- a/resources/module/intro.js +++ b/resources/module/intro.js @@ -7,20 +7,23 @@ 'i18next', 'i18nextXHRBackend', 'i18nextBrowserLanguageDetector', - 'konva' + 'konva', + '' ], factory); } else if (typeof module === 'object' && module.exports) { // Node. Does not work with strict CommonJS, but // only CommonJS-like environments that support module.exports, // like Node. - // Konva: requires 'canvas' -> deactivated for now... // i18next-xhr-backend: requires XMlHttpRequest + // Konva: requires 'canvas' -> deactivated for now... + // MagicWand: no package -> deactivated module.exports = factory( require('i18next'), require('i18next-xhr-backend'), require('i18next-browser-languagedetector'), + null, null ); } else { @@ -29,14 +32,16 @@ root.i18next, root.i18nextXHRBackend, root.i18nextBrowserLanguageDetector, - root.Konva + root.Konva, + root.MagicWand ); } }(this, function ( i18next, i18nextXHRBackend, i18nextBrowserLanguageDetector, - Konva) { + Konva, + MagicWand) { // similar to what browserify does but reversed //https://www.contentful.com/blog/2017/01/17/the-global-object-in-javascript/