move.js icon indicating copy to clipboard operation
move.js copied to clipboard

Inner `require` conflicts with browserify

Open gobwas opened this issue 11 years ago • 5 comments

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.

gobwas avatar Apr 23 '14 08:04 gobwas

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

yields avatar Apr 23 '14 15:04 yields

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

ben-eb avatar Dec 09 '14 13:12 ben-eb

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

d-oliveros avatar Mar 06 '15 01:03 d-oliveros

does this fix it?

browserify --noparse move.js main.js > bundle.js

yields avatar Mar 06 '15 02:03 yields

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!

axelpale avatar May 04 '15 20:05 axelpale