swc_ecma_compat_es2015

Function function_name

source
pub fn function_name() -> impl Pass
Expand description

@babel/plugin-transform-function-name

§Example

§In

var number = function (x) {
  return x;
};
var Foo = (class {});

§Out

var number = function number(x) {
  return x;
}
var Foo = (class Foo {});