When we add loaderz as a project (dev)dep, loaderz trigger the post-install and try to execute and compile from the tsconfig.json in the root module and not from the loaderz module, which will then result in outputting loaderz dist files in root module dist/.
Unit-tests aren't working properly and need to be rewritten. Currently on the tests we try to fetch the url (for an image, video, or audio) and once it's loaded we resolve the promise. The issue here is that we are using ava with jsdom. We need to simulate a fetching of the resources, then resolve the promises.
ava and browser-env are already added in the package.json, some commands have also been added for tests. There is also a branch for implementing tests. More information about browser testing with Ava.