[JSCodeGen] Library compilation and "exports" keyword
Issue #242
new
Hello
Have you plan to implement also library compilation with DWS/JSCodeGen and add the keywords “library” and “exports”? What I mean is like with pas2js as you can see here: https://wiki.freepascal.org/pas2js_modules
Comments (2)
-
repo owner -
reporter I see. Nice to have export. But I think exports and import are interesting too. At least foe JSCodeGen ro make modular things… i don't know how do you think about that…
- Log in to comment
“library” is supported as an alternative to “program”, it has no particular meaning for the compiler and codegen, but can bue used to bundle dependencies (or not) in a post-linking phase, its is surfaced as ProgramType.
”exports” is not supported, but “export” is, there is some minimal documention/illustration in https://www.delphitools.info/2014/10/15/dws-web-server-update/