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.
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.