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
I would love to hear about that as well.
Let say I've an UMD module which contains tons of submodules, some of these submodules depends on libraries (let say moment.js) that are not necessary for others to work. I would like for my module to be properly initialized even if those dependencies are not defined.
This behavior works fine for the global exports of the wrapper because if root.whatever is not defined well the module will be initialized with this dependency beeing undefined. But in case of AMD and commonjs it just crashes because require('something-which-doesntexist') and define(['something-which-doesntexist']) throws.
I don't know if I can post this question here. Feel free to reject it, please.
What if my universal module need underscore OR lodash? May I be explicit about that in my module definition?
Thanks,
Adriano
The text was updated successfully, but these errors were encountered: