[Regression] SyntaxError when calling require()
on a JSON file since 4.13.0
#587
Closed
4 of 6 tasks
Labels
Acknowledgements
Minimal reproduction URL
See below
Problem & expected behavior (under 200 words)
Calling
tsx.require()
on a JSON file from module"tsx/cjs/api"
throws a SyntaxError since 4.13.0, and worked in previous version 4.12.1 (v4.12.1...v4.13.0)Reproduction steps
Tested on node v20.12.2
Outputs the JSON object
npm i tsx@4.12.1 node -e 'console.log(require("tsx/cjs/api").require("./package.json", "."))'
Throws a
SyntaxError
Bugs are expected to be fixed by those affected by it
Compensating engineering work financially will speed up resolution
The text was updated successfully, but these errors were encountered: