gajus / gajus/babel-plugin-log-deprecated
Does not work for ES Classes
Open
bug
- Dominant language
- JavaScript
- Stars
- 102
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for the execellent idea and implementation. Unfortunately it does not seem with class methods in ES2015 classes. I am not sure whether this is related to the es2015 preset which is changing classes beforehand.
Example code:
```js
/**
* @deprecated
*/
function oldMethod() {}
class About extends React.Component {
/**
* @deprecated
*/
oldMethod() {}
render() {
return (
Deprecated Test - Works
Deprecated Test - Does not work
)
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.