Open ggorlen opened 2 years ago
An alternative approach is sticking with no-build, but improving type annotation (checked with TS), linting, mininifcation (uglify-js), and writing code that's a bit more compatible with older browsers, like htmx
References:
Actually, jsdelivr CDN can minify, so I'll just use that for now (https://github.com/ggorlen/prettybt/pull/9). I'll leave this open for posterity though, might be good to lint and type check, and optionally minify on our end.
Making it a dev dependency doesn't change it from being zero-dependency on npm. The code should be transpiled and minified.