File tree Expand file tree Collapse file tree 4 files changed +2
-9
lines changed Expand file tree Collapse file tree 4 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ const normalizeOptions = require('./utils/normalize-options').normalizeOptions;
7
7
function macros ( babel ) {
8
8
const t = babel . types ;
9
9
10
- let macroBuilder ;
11
10
let options ;
12
11
13
12
return {
@@ -24,12 +23,9 @@ function macros(babel) {
24
23
if ( item . isImportDeclaration ( ) ) {
25
24
let importPath = item . node . source . value ;
26
25
27
- let featureSources = options . featureSources ;
28
26
let debugToolsImport = options . debugTools . debugToolsImport ;
29
27
let envFlagsImport = options . envFlags . envFlagsImport ;
30
28
31
- let isFeaturesImport = featureSources . indexOf ( importPath ) > - 1 ;
32
-
33
29
if ( debugToolsImport && debugToolsImport === importPath ) {
34
30
this . macroBuilder . collectDebugToolsSpecifiers ( item . get ( 'specifiers' ) ) ;
35
31
}
Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ module.exports = class Builder {
104
104
callExpression = this . _createConsoleAPI ( options . consoleAPI || callee , args ) ;
105
105
}
106
106
107
- let identifiers = this . _getIdentifiers ( args ) ;
108
107
let prefixedIdentifiers = [ ] ;
109
108
110
109
if ( options . predicate ) {
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ function createTests(options) {
117
117
let references = binding . referencePaths ;
118
118
119
119
let replacements = [ ] ;
120
- for ( let reference of references ) {
120
+ references . forEach ( ( ) => {
121
121
replacements . push (
122
122
t . variableDeclaration ( 'var' , [
123
123
t . variableDeclarator (
@@ -126,7 +126,7 @@ function createTests(options) {
126
126
) ,
127
127
] )
128
128
) ;
129
- }
129
+ } ) ;
130
130
131
131
path . remove ( ) ;
132
132
importDeclarationPath . insertAfter ( replacements ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const fs = require ( 'fs' ) ;
4
- const path = require ( 'path' ) ;
5
3
const DebugToolsPlugin = require ( '..' ) ;
6
4
7
5
describe ( 'baseDir' , function ( ) {
You can’t perform that action at this time.
0 commit comments