I made something similar for use with Knockout.js. Love your clear code and efficient implementation! I will probably swap out my core logic for yours.
Some here have mentioned the webpack overhead, and suggested rollup.js. I've had great results with rollup for these teeny-tiny browser-focused projects.
Some here have mentioned the webpack overhead, and suggested rollup.js. I've had great results with rollup for these teeny-tiny browser-focused projects.