When compiling resources/modules, the optimizer should use apiContext, apiName, defineContext, and defineName to correctly generate the compiled code. Since plugins just blindly write out "define(" in their write methods, the build tool has to compensate for this by scanning and correcting the build output.
Calls to curl( should also be converted (but not calls to require(!).
When compiling resources/modules, the optimizer should use apiContext, apiName, defineContext, and defineName to correctly generate the compiled code. Since plugins just blindly write out "define(" in their
write
methods, the build tool has to compensate for this by scanning and correcting the build output.Calls to
curl(
should also be converted (but not calls torequire(
!).