Create a Javascript library

If I create a console app and configure it for separate Javascript files then I can create Javascript libraries - after deleting the rtl and main() code from the file. Is there a cleaner way to do this in Delphi or do I need to use the pas2js compiler from the command line?

Thanks, Bob

You could use the switch to not generate a single JS file and then just use the unit JS files and not the main JS file (that has the main run() code)

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.