Use js lib in html5 target

Hi, I would like to know how hard would it be to use an js lib(facebook lib) while targeting html5. In flash its really easy to use swc, but I couldnt found an answer for html5 and js.

Thanks!

You just “extern classes” or untyped __js__ (""); in your code, it’s actually really easy on JS :slight_smile:

http://old.haxe.org/doc/js/extern_libraries

Awesome, didnt know about extern, I always thought that extending other languages was a black magic like creating a macro.

thanks!