Yes!
After I sended this e-mail, I found the info about the -Tmodule. But doesn?t work for me, because forces the -Fc, and I need the project in single files.
I will make a workaround to this.
Thanks for the reply!
De: <mailto:>
Enviado:ter?a-feira, 25 de abril de 2023 07:00
Para: <mailto:>
Assunto: Pas2js Digest, Vol 57, Issue 1
Send Pas2js mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit https://bra01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freepascal.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fpas2js&data=05%7C01%7C%7C4b65346d2bc941456e2408db4573dcbb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638180136173705511%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ljDwh7%2BRKcxmkURtek6olaEc27p0MoRGLmxYltOL%2BxU%3D&reserved=0<https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js> or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific than "Re: Contents of Pas2js digest..."
Today's Topics:
1. How I use de Linklib? (Henrique Gottardi Werlang)
2. Re: How I use de Linklib? (Michael Van Canneyt)
----------------------------------------------------------------------
Message: 1
Date: Mon, 24 Apr 2023 19:30:10 +0000
From: Henrique Gottardi Werlang
To: ""
Subject: [Pas2js] How I use de Linklib?
Message-ID:
Content-Type: text/plain; charset="windows-1252"
I trying the linklib directive, and the import don?t apper in the JS file.
I tried like this
{$linklib MyLibFile.js MyLib}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://bra01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.freepascal.org%2Fpipermail%2Fpas2js%2Fattachments%2F20230424%2Fc9549c42%2Fattachment-0001.htm&data=05%7C01%7C%7C4b65346d2bc941456e2408db4573dcbb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638180136173705511%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=lAwtAtPJuyMRFlqSwJUwf5haXwmv%2BE13eIHrUcrE1Zg%3D&reserved=0<http://lists.freepascal.org/pipermail/pas2js/attachments/20230424/c9549c42/attachment-0001.htm>>
------------------------------
Message: 2
Date: Tue, 25 Apr 2023 08:23:18 +0200 (CEST)
From: Michael Van Canneyt
To: Henrique Gottardi Werlang via Pas2js
Subject: Re: [Pas2js] How I use de Linklib?
Message-ID: <alpine.DEB.2.22.394.2304250817240.3586198 at home> Content-Type: text/plain; charset="windows-1252"; Format="flowed"
Henrique Gottardi Werlang wrote 6 lines
Imports only work in modules in the browser, or in NodeJS.
So Linklib only works when the target is module or nodejs. Assuming you work in the browser, did you set -Tmodule ?
Michael.
------------------------------
Subject: Digest Footer
