[Pas2js] Javascript import and export

Michael Van Canneyt michael at freepascal.org
Sun Jul 4 19:43:24 CEST 2021



On Sun, 4 Jul 2021, Ng Pheng Siong wrote:

> Hi all,
>
> First time posting here.
>
> I'm exploring using pas2js with ReactNative and/or NativeScript. I see that
> they use Javascript "import" and "export" statements.
>
> Will pas2js support import and export? What would the Pascal syntax look like?

Import works, it is simply a unit.

We're working on export, the syntax will be exactly as the existing library syntax.

Michael.



More information about the Pas2js mailing list