gajus / gajus/babel-plugin-log-deprecated

Does not work for ES Classes

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.