kripken / box2d.js

Port of Box2D to JavaScript using Emscripten
1.33k stars 196 forks source link

Non-minified source? #15

Open jasonkester opened 11 years ago

jasonkester commented 11 years ago

Any chance you could include a non-minified javascript file? Debugging into the minified javascript is not any fun.

hyzhak commented 11 years ago

it will be great

hyzhak commented 11 years ago

And finally i overcome LLVM, clang and emscripten, and compile non-minified box2d. Use:

$(EMCC) -s INLINING_LIMIT=0 --js-transform "python bundle.py" $< -o $@

without -O2

and here is the sources: https://raw.github.com/Hyzhak/darlingjs/gh-pages/vendor/box2d-dev.js

As you can see they doesn't look so friendly and readable. Clearly, we need to use source maps for emscripten.

ghost commented 11 years ago

Thank you very much Hyzhak, it's appreciated.