browserify / browserify-handbook

how to build modular applications with browserify
Other
4.58k stars 292 forks source link

Exclude example should use standalone jQuery instead of jquery #62

Closed tschaub closed 8 years ago

tschaub commented 8 years ago

The exclude example fails with an uncaught TypeError: $ is not a function.

Instead of assigning jquery to the global in the standalone module, it should assign jQuery.

The current example suggests:

$ browserify -r jquery --standalone jquery > jquery-bundle.js

Instead this should be:

$ browserify -r jquery --standalone jQuery > jquery-bundle.js

Fixes #30.

tschaub commented 8 years ago

I see now that --standalone doesn't work when trying to create bundles for other modules, so I think that #58 is a better fix for #30.