I have successfully implemented require.js with multiple individual files:
require(['app/login/Login'], function (app) {
new app.Login();
});
Everything is functioning as expected, with each module loading when needed.
Recently, I have optimized my code using the Optimizer and now have a single combined .js file named "everything.js" - which is exactly what I wanted.
However, I am unsure of how to actually load this new file.
require(['everything'], function (app) {
new app.Login();
});
When I try the above code, it returns undefined for app
.