The application without bundling works fine. But after bundling I get an autoComplete is not defined error.
// code from the bundle
(function() {
if (typeof define === 'function' && define.amd)
define("github:gbreeze/JavaScript-autoComplete@master/auto-complete.js", [], function() {
return window.autoComplete = autoComplete;
}) && define("autoComplete", ["github:gbreeze/JavaScript-autoComplete@master/auto-complete.js"], function(m) {
return m;
});
...
})();
I think the problem is, that the first define function do return an undefined and so the second define function is not executed.
If I change the code by removing this second define function in the bundle like following, everything works fine:
I'm submitting a bug report
The application without bundling works fine. But after bundling I get an
autoComplete
is not defined error.I think the problem is, that the first define function do return an undefined and so the second define function is not executed. If I change the code by removing this second define function in the bundle like following, everything works fine:
Here is the original module definition:
If I search in my bundle for "
&& define(
" and set breakpoints, none of this second define functions are executed.So who is manipulating the original module definition code on bundling and how to change/disable it?
Thanks
Please tell us about your environment: