If I create a custom element and build it with $ dojo build --element={elementPath}, the generated build is wrapped with a UMD wrapper. If there is an AMD define in the global namespace, however, and the environment finishes loading the custom element build after the loader, then the custom element's factory is not executed immediately but instead passed to a define call. Given the nature of custom elements, the UMD wrapper is likely unnecessary and should be removed.
Bug
If I create a custom element and build it with
$ dojo build --element={elementPath}
, the generated build is wrapped with a UMD wrapper. If there is an AMDdefine
in the global namespace, however, and the environment finishes loading the custom element build after the loader, then the custom element's factory is not executed immediately but instead passed to adefine
call. Given the nature of custom elements, the UMD wrapper is likely unnecessary and should be removed.