Skip to content

ux: transpile TypeScript and JavaScript code (beta-3.0) - #482

Merged
mortend merged 3 commits into
fuse-open:beta-3.0from
mortend:ux-transpiler
May 23, 2023
Merged

mortend merged 3 commits into
fuse-open:beta-3.0from
mortend:ux-transpiler

Conversation

@mortend

@mortend mortend commented May 18, 2023

Copy link
Copy Markdown
Member

ux: transpile TypeScript and JavaScript code

This will invoke the FuseJS transpiler on TypeScript tags and JavaScript
tags where Transpile is enabled, in all UX documents being compiled.

The transpiler will replace user-provided code (modern) with transpiled
code (ES5) compatible with our JavaScript engine, before the resulting
output is saved to disk.

engine: refactor FuseJS transpiler code

This makes it easier to reuse the transpiler functionality in other
parts of the code base, e.g. the UX compiler.

  • Add ITranspiler interface in Uno.Compiler.API
  • Extract LazyTranspiler and TranspilerServer classes
  • Pass LazyTranspiler down from BuildDriver and LibraryBuilder
  • Simplify BundleCache class

ux: source code clean-up

  • Remove needless qualifiers and whitespace
  • Remove unused code
  • Tabs -> spaces

mortend added 3 commits May 18, 2023 20:34
* Remove needless qualifiers and whitespace
* Remove unused code
* Tabs -> spaces
This makes it easier to reuse the transpiler functionality in other
parts of the code base, e.g. the UX compiler.

* Add ITranspiler interface in Uno.Compiler.API
* Extract LazyTranspiler and TranspilerServer classes
* Pass LazyTranspiler down from BuildDriver and LibraryBuilder
* Simplify BundleCache class
This will invoke the FuseJS transpiler on TypeScript tags and JavaScript
tags where Transpile is enabled, in all UX documents being compiled.

The transpiler will replace user-provided code (modern) with transpiled
code (ES5) compatible with our JavaScript engine, before the resulting
output is saved to disk.
@mortend

mortend commented May 18, 2023

Copy link
Copy Markdown
Member Author

fuse-open/fuselibs#1472

@mortend
mortend merged commit 08646bc into fuse-open:beta-3.0 May 23, 2023
@mortend
mortend deleted the ux-transpiler branch May 23, 2023 15:30
mortend added a commit to mortend/uno that referenced this pull request May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant