-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
If you call an exported function in its own file, the build will add ____exports to its call, which will result in nil in the runtime.
To Reproduce
Steps to reproduce the behavior:
- Create two files
first.tsandsecond.ts - In
first.tswrite two functionsexport function func1 () { ... }andexport function func2 () { func1() } - In
second.tswrite functionfunction func3() { func1(); func2() } - Built this and in file
first.luainfunc2insead offunc1()call will be____exports.func1()which will lead tonilin runtime
Expected behavior
Correct functional call
Screenshots (If my explanation is unclear :D)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working


