diff --git a/packages/babel-core/src/transformation/file/index.js b/packages/babel-core/src/transformation/file/index.js index 40f49ba305..1a2d1627ec 100644 --- a/packages/babel-core/src/transformation/file/index.js +++ b/packages/babel-core/src/transformation/file/index.js @@ -67,7 +67,6 @@ export default class File { } this.metadata = { - usedHelpers: [], marked: [], modules: { imports: [], @@ -79,7 +78,6 @@ export default class File { }; this.declarations = {}; - this.usedHelpers = {}; this.path = null; this.ast = {}; @@ -96,7 +94,6 @@ export default class File { parserOpts: BabelParserOptions; opts: Object; declarations: Object; - usedHelpers: Object; path: NodePath; ast: Object; scope: Scope; @@ -191,11 +188,6 @@ export default class File { const declar = this.declarations[name]; if (declar) return declar; - if (!this.usedHelpers[name]) { - this.metadata.usedHelpers.push(name); - this.usedHelpers[name] = true; - } - const generator = this.get("helperGenerator"); const runtime = this.get("helpersNamespace"); if (generator) {