daweilv / treejs

A lightweight tree widget, compatible with VanillaJS / React / Vue. Tiny size after gzip. Zero dependence.
MIT License
142 stars 49 forks source link

Vanilla/Dist completely broken? #36

Open ForbiddenEra opened 7 months ago

ForbiddenEra commented 7 months ago

Using tree.js and tree.min.js from the dist/ in this repo results in:

Uncaught SyntaxError: unexpected token: ':'[tree.js:1:11](https://<redacted>/js/tree.js)

Using standard script tag as documented for vanilla usage.

Looking at the object itself, doesn't look right either aside from the apparent syntax error.

ForbiddenEra commented 7 months ago

Note that the version from the example (at https://daweilv.github.io/treejs/dist/tree.min.js) does work and looks as expected.