babel / proposals

✍️ Tracking the status of Babel's implementation of TC39 proposals (may be out of date)
https://github.com/tc39/proposals
433 stars 39 forks source link

Parameter Decorators (Stage 0) #13

Open babel-bot opened 7 years ago

babel-bot commented 7 years ago

Original issue submitted by @armorik83 in https://github.com/babel/babel/issues/1301

Champion: @igorminar Spec Repo: N/A Spec Doc: https://docs.google.com/document/d/1Qpkqf_8NzAwfD8LdnqPjXAQ2wwh8BBUGynhn-ZlCWT0/edit

Example

class MyComponent {
  refresh(@lastRefreshTime timeStamp) {}
}
yaitskov commented 5 years ago

ts-loader support this.

vjpr commented 5 years ago

https://www.npmjs.com/package/babel-plugin-parameter-decorator