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 source code #50

Closed TheRusskiy closed 8 years ago

TheRusskiy commented 8 years ago

The source code includes @decorators, which are not officially supported by babel and the only way to make them work is by introducing "babel-plugin-transform-decorators-legacy". Can we please rewrite code to include them in a more vanilla style?

loganfsmyth commented 8 years ago

I'm not sure what you're asking for. What would be a more vanilla style? Why is style important in this case?

TheRusskiy commented 8 years ago

@loganfsmyth lol, sorry, I created issue on the wrong project. The other project was a NPM package which had decorators in source code, so you had to use babel and this plugin with it. Probably had 2 tabs open at the same time and posted to the wrong one. Once again, sorry!

loganfsmyth commented 8 years ago

Ahh, that makes sense haha. I agree, modules published to npm should be compiled before publishing.