How to import any JS library without a build system. I often come across an NPM module and want to import it into an app I’m building which does not make use of a javascript build. It’s quite tricky! This article breaks down the complete set of options for doing this. And when that fails we can bundle a single NPM module.
Recent articles
- React in Rails is gaining momentum with Inertia - 14th April 2025
- Query optimization in rails - 14th April 2025
- Ruby's clamp method reduces conditionals - 24th February 2025