component/component — pull request #342 by nealstewart (2013-05-28 14:18:31+00:00)
Title: Allow require.js optimizer to run on standalone builds.

tl;dr

I'm seeing build errors when I try and produce an optimized build with component's current AMD define block. This fixes it. I didn't see any tests for the standalone behavior.

-----------------

When performing optimization require.js looks inside of define blocks for require calls (to allow for CJS-esque requires inside of AMD blocks).

It sees the call to component's require inside of the define and says "I don't see that file!" and explodes.

This causes it to just see "define returns the result of an expression" instead.