-
Notifications
You must be signed in to change notification settings - Fork 14
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
难道已经不维护了吗 #48
Comments
|
官方没有Typescript插件. 现在有两种解决方案
|
官方不需要安裝插件 |
我觉得你可以重新开发一款简洁一点的插件, 直接执行TSX就行了, 会自动更具tsconfig.json编译成对应的CJS和ESM模块 , ts-node作者自己都不愿意继续维护支持ESM了 , 现在最好的替代品就是TSX和 swc-node了 |
當初開始使用 tsx 就是因為 ts-node 開始出現這種問題 而且解決方式非常的煩人 也 無法一勞永逸
曾經試圖讓同時安裝 tsx 與 ts-node 時 以 tsx 為優先 idea-run-typescript/src/io/plugin/tsnode/execution/TsConfigurationEditor.kt Lines 47 to 49 in 3fc04b1
https://youtrack.jetbrains.com/issue/WEB-58993/NodePackageField-didnt-follow-list-order
這樣的話 也許會考慮直接在這個插件內捨棄 ts-node 讓他只偵測 tsx |
預設為 tsx 的版本 兩個檔案只有內容有差別 選一個裝就可以 |
No description provided.
The text was updated successfully, but these errors were encountered: