midzer / tobii

An accessible, open-source lightbox with no dependencies
https://midzer.github.io/tobii/demo/
MIT License
200 stars 20 forks source link

Replace Rollup with Microbundle and create module/modern versions #50

Closed ocean90 closed 3 years ago

ocean90 commented 3 years ago

This PR is an alternative for #45. It uses Microbundle, a "zero-configuration bundler for tiny modules". I'd call Tobii a "tiny" module so this seems a perfect fit. 😀

Summary of the changes:

The config is inspired by Preact's config.

In my testing everything seems to continue to work as expected. I think this is ready and a much easier solution than #45. @midzer Let me know what you think.

midzer commented 3 years ago

Hi @ocean90 and many thanks for your PR.

I've never heard of Microbundle before, but this looks great! I did some additional testing on one of my projects using your forked branch and everything is fine.

I am going to merge this now :)