jquery/jquery — comment on commit 8bc60bab5dd9747e7ae06c3fdb0c60782d346ff0
File: src/exports.js line 18
By jrburke:

I would prefer to keep the check as-is, and I believe comparing minified+gzipped size is more important than just minified size, but I leave it to the jQuery committers to comment.

As the check stands now, it is a standard check for AMD, and using that standard check allows AMD optimizer tools to namespace define to another object and do some file rewriting of jquery.js to use that namespaced define over the global define.

If the jQuery committers feel the changes are important though, then we can add another special case to the namespace rewriting tools. However, I do not believe the typeof check is a problem given the additional .amd check and I do not believe the minification tricks will buy much once gzipped.