jrburke/almond — Issue #2: jQuery 1.7 Breaking Almond When Optimizing To Single File
Author: busticated
Created: 2011-11-12 06:36:04+00:00
State: open

Hey James -

Ran into this weird issue while trying to use Almond to run my optimized code. Looks like jQuery breaks the optimization step somehow?

Here's the isolated test case:
http://dl.dropbox.com/u/4584460/reqtest/index.html

The error I get using example #3 from the link above is:
Uncaught TypeError: undefined is not a function

Where 'undefined' should be jQuery. This goes away if I do not try to include jQuery (example #4).

FWIW, I'm also seeing this an error when I try to package my optimized code into a single file using require itself (example #2).
Uncaught ReferenceError: define is not defined

Running the unoptimized modules works fine (example #1).

I think I have my build configured properly but I'm not 100% sure.

Let me know if there's any additional info you could use.

Thanks!
-matt