When using the result of require as a value along with strings, tstl gives weird errors
Example:
const foo = require("a").foo + require("b").foo
// or
require("someFunctionExport")("foo")
tstl reports Could not resolve lua source files for require path 'a") + require("b' in file src/control.ts.
This looks like like tstl is using a regexp search on the output lua to do module/file resolution, that seems very fragile. This probably is also related to #1101.
When using the result of
requireas a value along with strings, tstl gives weird errorsExample:
tstl reports
Could not resolve lua source files for require path 'a") + require("b' in file src/control.ts.This looks like like tstl is using a regexp search on the output lua to do module/file resolution, that seems very fragile. This probably is also related to #1101.