cujojs / cram

Simple, yet powerful, AMD and CommonJS module bundler.
http://cujojs.com
58 stars 9 forks source link

fix runAsModule detection with regexp #44

Closed gogamoga closed 10 years ago

gogamoga commented 10 years ago

Sorry for the regexp, but i don't see any better way to do it. Again, hopefully nothing breaks in other places.

gogamoga commented 10 years ago

tested. works nice :P

unscriptable commented 10 years ago

Hey @gogamoga,

The right way to fix this is to move all the arguments-parsing stuff to the cram/bin/cram module and make the cram/cram module a javascript api. (…and then to update the docs.)

Thanks for helping out. I'm glad this works for you in the mean time.

I'm going to start on this refactor today.

-- J

unscriptable commented 10 years ago

This is obsolete as of the most recent push to the Dev branch. Thanks goga!