[Pas2js] compile unit file with no external dependencies
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Nov 12 00:04:00 CET 2018
On Sun, 11 Nov 2018 16:43:50 -0600 (CST)
cbsistem via Pas2js <pas2js at lists.freepascal.org> wrote:
> which command to compile a file
> .pas for .js? the generated .js file will be loaded on demand, it
> should contain only your code, no link to external files or rtl.js
compile:
pas2js yourunit.pas
Then call
var module = pas.yourunit;
rtl.loadintf(module);
rtl.loadimpl(module);
Mattias
More information about the Pas2js
mailing list