This plugin depends on jquery.event.move but the require statement does not "ask" it.
define(['jquery'], thisModule);
Shouldn't it be define(['jquery', undefined, 'jquery.event.move'], thisModule); ?
My current issue is that when I require jquery.event.swipe, I have to configure a shim to say it relies on jquery.event.move but during the r.js optimization, despite the fact that move is inserted, swipe does not know move because nobody asked for "move".
Hi,
This plugin depends on jquery.event.move but the require statement does not "ask" it.
define(['jquery'], thisModule);
Shouldn't it be
define(['jquery', undefined, 'jquery.event.move'], thisModule);
?My current issue is that when I require jquery.event.swipe, I have to configure a shim to say it relies on jquery.event.move but during the r.js optimization, despite the fact that move is inserted, swipe does not know move because nobody asked for "move".
My current workaround is to rewrite the plugin:
onBuildWrite: function (moduleName, path, contents) { if ( moduleName === 'jquery.event.swipe' ) { return contents.replace(/\['jquery'\]/g, "['jquery', undefined, 'move']"); } else { return contents; } },
WDYT?
Thanks!
Cheers,
Raphaël