From 8ccd35b317db2a32794510e46a935ded14c94a09 Mon Sep 17 00:00:00 2001 From: Krati Ahuja Date: Sat, 15 Apr 2017 13:50:19 -0700 Subject: [PATCH] Don't use `let` or `const` It is breaking `ember-cli-fastboot` tests. --- lib/transforms/babel-plugin-remove-imports.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/transforms/babel-plugin-remove-imports.js b/lib/transforms/babel-plugin-remove-imports.js index 8cff6d51079..39838498e58 100644 --- a/lib/transforms/babel-plugin-remove-imports.js +++ b/lib/transforms/babel-plugin-remove-imports.js @@ -1,8 +1,8 @@ var path = require('path'); function removeImports() { - let importDeclarationsToRemove; - let filteredImports; + var importDeclarationsToRemove; + var filteredImports; return { name: 'remove-filtered-imports', @@ -22,7 +22,7 @@ function removeImports() { }, ImportDeclaration: function(path) { - const name = path.node.source.value; + var name = path.node.source.value; if (filteredImports.indexOf(name) !== -1) { importDeclarationsToRemove.push(path);