* Change vite output to ES2022
* Add whitespace-only minify using default esbuild
Does not work for .es.js output - limitation of vite.
Workaround for .es.js involves adding terser & a plugin.
* Remove @ts-expect-error from tests
* Update vite.config.mts
---------
Co-authored-by: Chenlei Hu <huchenlei@proton.me>
* ContextMenu ES6 class conversion
* Fix compat with extensions
* CurveEditor ES6 class conversion
* Split most of the LiteGraph global out to a class
* Move remainder of LiteGraph global to class file
* Remove IIFE wrapper
* Fix jest tests throwing due to type narrowing