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

Static literals on prototype

Open dhruvdutt opened this issue 7 years ago • 0 comments

Currently, we have support for transforming static Methods on prototype from

Controller.staticMethod = function(param) {
	var bar = "webpack-cli";
};

to

static staticMethod(param) {
	var bar = "webpack-cli";
}

But, we don't have support for transforming literals like this:

Controller.name = "Dhruvdutt";

We need to transform it into:

static name = "Dhruvdutt";

dhruvdutt avatar Apr 09 '18 15:04 dhruvdutt