简体   繁体   English

Babel 6 Typescript预设

[英]Babel 6 Typescript preset

I'm looking for Babel preset for Typescript, but for Babel 6, not Babel 7. I cannot seem to find this module. 我正在寻找Typescript的Babel预设,但对于Babel 6,而不是Babel 7,我似乎找不到此模块。 Is TS preset not supported for Babel 6? Babel 6是否不支持TS预设?

if you are using TypeScript 1.8+, the short answer would be that it's not supported on babel 6. babel 7 came with TS support as a selling point. 如果您使用的是TypeScript 1.8+,则简短的答案是babel 6不支持它。babel 7附带了TS支持作为卖点。

more details here https://matthewrwilton.wordpress.com/2016/03/18/typescript-to-es2015-es6-to-es5-via-babel-6/ and here https://devblogs.microsoft.com/typescript/typescript-and-babel-7/ 更多详细信息请参见https://matthewrwilton.wordpress.com/2016/03/18/typescript-to-es2015-es6-to-es5-via-babel-6/和此处https://devblogs.microsoft.com/typescript / typescript-and-babel-7 /

The amount of effort to make it work with babel 6 would be way superior to upgrading to babel 7 使它与babel 6一起工作所需的工作量将远远超过升级到babel 7的方式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM