luvit-api-design icon indicating copy to clipboard operation
luvit-api-design copied to clipboard

Load entry file manually

Open TohruMKDM opened this issue 2 years ago • 0 comments

In Luvit 2.x the entry file is required rather then loaded (with fs.readFileSync + load) which causes two issues.

  1. 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.

  2. 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 do load(data)(unpack(args))

TohruMKDM avatar Aug 17 '22 21:08 TohruMKDM