visionmedia / move.js

CSS3 backed JavaScript animation framework
http://visionmedia.github.com/move.js/
4.72k stars 686 forks source link

Inner `require` conflicts with browserify #42

Open gobwas opened 10 years ago

gobwas commented 10 years ago

When bundling my code with move.js included, browserify tries parse inner require method. Any way how can I avoid it? Renaming locally inner require to _require does help.

Thanks.

yields commented 10 years ago

i think that's a bug in browserify ? not sure.

ben-eb commented 9 years ago

Yup, same issue. I would love a move.js build that was compatible with a browserify pipeline. Are there any plans for one?

d-oliveros commented 9 years ago

Same issue here. Trying to make it work with browserify-shim, but those requires are breaking it.

yields commented 9 years ago

does this fix it?

browserify --noparse move.js main.js > bundle.js
axelpale commented 9 years ago

This browserify issue is strongly related to the package.json issue. Fortunately I'm on a verge of solving it for good. A pull request appearing in a couple of hours!