loganfsmyth / babel-plugin-transform-decorators-legacy

A plugin for Babel 6 that (mostly) replicates the old decorator behavior from Babel 5
MIT License
817 stars 57 forks source link

About the parameter decorator support #73

Closed itfinally closed 6 years ago

itfinally commented 6 years ago

Hello, I have a question for babel-plugin-transform-decorators-legacy.

I wrote a http client by typescript, this is the demo.

It can working on typescript because there are support class/method/parameter/attribute decorator. And I want to support es6 too, but this is a part of compiled code.

function upload(file, name) {}

Seem like babel-plugin-transform-decorators-legacy not support decorate parameter ? = =||

loganfsmyth commented 6 years ago

This plugin implements the original decorator behavior of Babel 5, and that is all. I don't know what the current status of parameter decorators is in general, or if there is any plan to support them as an ES20XX proposal.