fuse-open / fuselibs

Fuselibs is the Uno-libraries that provide the UI framework used in Fuse apps
https://npmjs.com/package/@fuse-open/fuselibs
MIT License
176 stars 72 forks source link

Fuse.Scripting.JavaScript: TypeScript and transpiler support (beta-3.0) #1472

Closed mortend closed 1 year ago

mortend commented 1 year ago

This adds a new TypeScript tag and a new Transpile attribute on the existing JavaScript tag, used to enable modern script features.

The UX compiler (located in Uno) will understand these and invoke the FuseJS transpiler accordingly, replacing user-provided code (modern) with transpiled code (ES5) compatible with our JavaScript engine.

The live reload feature in Fuse X will understand these also, transpiling user-provided code to ES5 on the fly.