Skip to content

Commit

Permalink
Merge pull request #4928 from kratiahuja/fix-canary-build
Browse files Browse the repository at this point in the history
Don't use `let` or `const`
  • Loading branch information
bmac authored Apr 15, 2017
2 parents b087eab + 8ccd35b commit 8157492
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/transforms/babel-plugin-remove-imports.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var path = require('path');

function removeImports() {
let importDeclarationsToRemove;
let filteredImports;
var importDeclarationsToRemove;
var filteredImports;

return {
name: 'remove-filtered-imports',
Expand All @@ -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);
Expand Down

0 comments on commit 8157492

Please sign in to comment.