es5-function-to-class-codemod icon indicating copy to clipboard operation
es5-function-to-class-codemod copied to clipboard

:package: Transform ES5 Functions to ES6 Classes

Results 3 es5-function-to-class-codemod issues
Sort by recently updated
recently updated
newest added

Here's the error: ``` test_value.js Transformation error (Cannot read property 'value' of undefined) TypeError: Cannot read property 'value' of undefined at addMethodToClass (/Users/dlj/projects/numetric.other/func-to-class.js:107:43) at NodePath.root.find.forEach.path (/Users/dlj/projects/numetric.other/func-to-class.js:137:22) at __paths.forEach (/Users/dlj/.config/yarn/global/node_modules/jscodeshift/src/Collection.js:77:36) at...

Currently, we have support for transforming static Methods on prototype from ```js Controller.staticMethod = function(param) { var bar = "webpack-cli"; }; ``` to ```js static staticMethod(param) { var bar =...

help wanted
good first issue
easy

Currently, we have support for transforming static Methods on prototype from ```js Controller.staticMethod = function(param) { var bar = "webpack-cli"; }; ``` to ```js static staticMethod(param) { var bar =...

help wanted
good first issue
easy