eduardolundgren / tracking.js

A modern approach for Computer Vision on the web
http://trackingjs.com
Other
9.44k stars 1.45k forks source link

NPM/WebPack Frienlyness #146

Open bathcat opened 8 years ago

bathcat commented 8 years ago

I wanted to use tracking.js via NPM and webpack. To enable that, I injected all the source inside a single shim function that exports tracking as a module.

It's a little hacky, but it seems to work well enough: tests pass, and all the examples seem to work.