How to use the babel-helper-function-name.bare function in babel-helper-function-name

To help you get started, we’ve selected a few babel-helper-function-name examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TeamFleet / WhoCallsTheFleet / dev-output / js-source / node_modules / babel-core / lib / transformation / transformers / es6 / classes / index.js View on Github external
ClassExpression: function ClassExpression(path, file) {
    var inferred = _babelHelperFunctionName.bare(path);
    if (inferred) return inferred;

    if (file.isLoose("es6.classes")) {
      return new _loose2["default"](path, file).run();
    } else {
      return new _vanilla2["default"](path, file).run();
    }
  }
};

babel-helper-function-name

Helper function to change the property 'name' of every function

MIT
Latest version published 7 years ago

Package Health Score

82 / 100
Full package analysis

Popular babel-helper-function-name functions

Similar packages