简体   繁体   中英

How to use stage 1 babel plugin in TypeScript

ESNext Proposal: The Pipeline Operator is in stage 1 .

The Pipeline Operator has an babel plugin: babel-plugin-transform-pipeline

How to config tsconfig.json for using stage 1 babel-plugin in ts-node, webpack, rollup, karma, etc.

Normally you could chain typescript and babel compilation, but Pipeline Operator is not valid syntax for Typescript yet. There is github issue with feature proposition: https://github.com/Microsoft/TypeScript/issues/17718 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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