Uh oh!
There was an error while loading. Please reload this page.
module: add --experimental-transform-types flag - #54283
Conversation
nodejs-github-bot
commented
Aug 9, 2024
Review requested:
|
29040a6 to
c5da92eCompareUh oh!
There was an error while loading. Please reload this page.
de62233 to
7343717CompareUh oh!
There was an error while loading. Please reload this page.
legendecas
left a comment
There was a problem hiding this comment.
Can we also add a test case that --experimental-enable-transformation doesn't eliminate unused imports, like this example?
7343717 to
b67230fCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
b67230f to
e0ac82eComparee0ac82e to
3578d86Compare3578d86 to
6b155bdComparemarco-ippolito
commented
Aug 9, 2024
Probably makes more sense, otherwise location will be always wrong |
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
Aug 12, 2024
nodejs-github-bot
commented
Aug 12, 2024
nodejs-github-bot
commented
Aug 12, 2024
nodejs-github-bot
commented
Aug 12, 2024
nodejs-github-bot
commented
Aug 12, 2024
Landed in 0301309 |
statianzo
commented
Aug 12, 2024
Has there been discussion around writing out the result of typescript transformation? It would allow package creators to publish TS -> JS consistent with the transformations node is doing internally. Given transformations don't apply to Happy to post this comment elsewhere if more suitable. |
We have a repository for this kind of discussion nodejs/typescript |
Bnaya
commented
Aug 13, 2024
Sorry if i'm later to the party :) |
jakebailey
commented
Aug 13, 2024
No, this is just isolatedModules. Node.js is not shipping a type checker that can perform that kind of analysis. |
targos
commented
Aug 14, 2024
I optimistically pushed it to v22.x-staging but tests failed, so I took it out: https://github.com/nodejs/node/actions/runs/10382663326/job/28746123871 |
marco-ippolito
commented
Aug 14, 2024
It requires backport I think, to imply the |
With the new flag
--experimental-transform-typesit is possible to enable the transformation of TypeScript-only syntax into JavaScript code.This feature allows Node.js to support TypeScript syntax such as
Enumandnamespace.