You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to concatenate all module to single file #1009
Use the paths object in require.config to declare aliases like Utils for Utils/Utils.js and the use these aliases in the define statements to specify your dependencies. When you run r.js, these aliases will be used as module names.
Insert the prefix (function(){ and suffix }()); after running r.js, which will only concatenate the modules. But it doesn't make sense, because the only global identifier, which will be used in the output bundle, will be define from require.js.
Activity
prantlf commentedon Apr 23, 2023
Yes, it can.
Use the
pathsobject inrequire.configto declare aliases likeUtilsforUtils/Utils.jsand the use these aliases in thedefinestatements to specify your dependencies. When you runr.js, these aliases will be used as module names.Insert the prefix
(function(){and suffix}());after runningr.js, which will only concatenate the modules. But it doesn't make sense, because the only global identifier, which will be used in the output bundle, will bedefinefromrequire.js.