-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with TypeScript (edge case) #76
Comments
Attaching a little sample... |
Moving the var bar_1 = __importDefault(require("./bar"));
Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return bar_1.default; } }); |
Same as #69 |
Closed
3 tasks
badeball
added a commit
to badeball/cypress-cucumber-preprocessor
that referenced
this issue
Sep 13, 2023
This specifically is kind of broken, in that tsc's output in this scenario is unrecognized by Node's lexer [1]. [1] nodejs/cjs-module-lexer#76
badeball
added a commit
to badeball/cypress-cucumber-preprocessor
that referenced
this issue
Sep 16, 2023
This specifically is kind of broken, in that tsc's output in this scenario is unrecognized by Node's lexer [1]. [1] nodejs/cjs-module-lexer#76
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a very simple TypeScript file:
When transpiled with
tsc
(4.8) andesModuleInterop
set totrue
the transpiled code will somehow look like this:In this case, the lexer seems to be ignoring the
bar
export.The text was updated successfully, but these errors were encountered: