Closed xixixao closed 10 years ago
Hi @xixixao and thanks for your comments.
This is a known behaviour, as mentioned in #36. Right now the behaviour is like in https://github.com/umdjs/umd/blob/master/amdWebGlobal.js#L22-L25, i.e to always export
window.myAwesomeModuleName = __umodule__;
even if AMD is present.
It is a trivial change in the templates to export it optionally when AMD loader is present, I am just a bit troubled on where to add the user option in the config - any suggestions ?
I haven't used the config at all, so I can't help there. But I think the non-exporting should be default and the exporting an option.
oh, your missing out :-) Yeah, probably its best that the default should be not to export
The generated code, when using
combined
template, is simplyinside of a define. This will always register the global, even if I require my awesome module via RequireJS, which goes strictly against the documentation, which links the proper definition.
Otherwise, this project is awesome, thanks!