ggorlen / prettybt

simple binary tree visualizer
https://ggorlen.github.io/prettybt/
11 stars 3 forks source link

bundle with browserify? #6

Open ggorlen opened 2 years ago

ggorlen commented 2 years ago

Making it a dev dependency doesn't change it from being zero-dependency on npm. The code should be transpiled and minified.

ggorlen commented 10 months 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:

ggorlen commented 5 months ago

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.