luvit-api-design
luvit-api-design copied to clipboard
Load entry file manually
In Luvit 2.x the entry file is required rather then loaded (with fs.readFileSync
+ load
) which causes two issues.
-
It requires the input file to have a
.lua
,.so
, or.dll
extension and I do not believe an entry file should require any specific filename extension. -
It prevents command line arguments getting passed to the entry file in the form of
...
This would also get remedied by this change as you'll just be able to doload(data)(unpack(args))