Transformed file accesses out of scope variables in certain situations
ApocalypseCalculator opened this issue · 0 comments
ApocalypseCalculator commented
Acknowledgements
- I read the documentation and searched existing issues to avoid duplicates
- I understand this is a bug tracker and anything other than a proven bug will be closed
- I understand this is a free project and relies on community contributions
- I read and understood the Contribution guide
Minimal reproduction URL
Problem & expected behavior (under 200 words)
I linked the issue I created in puppeteer
where creating a named function assignment causes a ReferenceError within puppeteer (the evaluator function executes within the context of a browser page). Further down the thread, I discovered it was actually an issue with tsx
, as the bundled code wraps the function using a __name
call, which is not in scope within the browser context. Compiling via tsc
does not yield this issue, and so I am creating an issue here
Bugs are expected to be fixed by those affected by it
- I'm interested in working on this issue
Compensating engineering work will speed up resolution and support the project
- I'm willing to offer $10 for financial support