Download Latest Version 3.7.11 London.zip (14.3 MB)
Email in envelope

Get an email when there's a new version of Transcrypt

Home / units
Name Modified Size InfoDownloads / Week
Parent folder
Compilation units suitable to create pure JS components that can be combined and distributed without Transcrypt..tar.gz 2018-02-21 14.7 MB
Compilation units suitable to create pure JS components that can be combined and distributed without Transcrypt..zip 2018-02-21 14.9 MB
README.md 2018-02-21 965 Bytes
Totals: 3 Items   29.6 MB 0

It is possible to create native JavaScript component frameworks using Transcrypt. Components can be freely mixed on a page without requiring recompilation. A developer doesn't need Transcrypt or any knowledge of it to use such a framework. Each page has one unit that contains the Transcrypt runtime and, if needed, any central facilities. It is compiled with the -u .run switch. In addition each page can hold as many separate components as needed. Compile these with the -u .com switch. A loader is generated, accepting a list of components. By varying this list, each page can have it's own subset of components, without the need to recompile. The generated JavaScript code for components can be very small, typically a few hundred bytes. The runtime and central facilities are included in the page only once.

See:

http://www.transcrypt.org/docs/html/special_facilities.html#transcrypt-s-unit-mechanism-and-creating-native-javascript-component-frameworks

Source: README.md, updated 2018-02-21