[Pas2js] missing rtl.js

warleyalex warleyalex at yahoo.com.br
Thu Jul 25 14:00:49 CEST 2019


Exactly. The pas2js.cfg config file was not set up correctly. I fixed
packages\* path and I've moved the rtls.js from
\pas2js\compiler\utils\pas2js\dist\rtl.js to D:\FPC2JS\dist and modified the
confile file.
Now, the dependency is not necessary when compiling. 

D:\FPC2JS
+---projects
+---dist
+---pas2js-windows-1.5.1
|   +---bin
|   +---demo
|   +---packages

The correct pas2js.cfg config is:
-----------------------------
#
# Minimal config file for pas2js compiler
#
# -d is the same as #DEFINE
# -u is the same as #UNDEF
#
# Write always a nice logo ;)
-l

# Display Warnings, Notes and Hints
-vwnh
# If you don't want so much verbosity use
#-vw

-Fu$CfgDir\..\packages\*
-Fu$CfgDir\..\..\dist\


#IFDEF nodejs
-Jirtl.js
#ENDIF

# Put all generated JavaScript into one file
-Jc

# Allow C-operators
-Sc

# end.
-----------------------------




--
Sent from: http://pas2js.38893.n8.nabble.com/


More information about the Pas2js mailing list