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

Decorators in Object Literal Method Declaration #53

Closed 0xMarkian closed 7 years ago

0xMarkian commented 7 years ago

The spec says that decorators have to support syntax like this:

var o = {
  @F("color")
  @G
  bar() { }
}

But in fact the transformer doesn't do any transformation(decorations).

loganfsmyth commented 7 years ago

Do you have a specific example? It does definitely cover that: https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/blob/master/test/index.js#L1147

0xMarkian commented 7 years ago

Sorry, didn't read the spec completely - my mistake. I am going to close this issue.