File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
const path = require ( 'path' )
3
3
const Analyzer = require ( '@goto-bus-stop/common-shake' ) . Analyzer
4
- const evaluateConst = require ( '@goto-bus-stop/common-shake' ) . evaluateConst
5
4
const transformAst = require ( 'transform-ast' )
6
5
const wrapComment = require ( 'wrap-comment' )
7
6
const through = require ( 'through2' )
@@ -263,11 +262,12 @@ function createStream (opts, api) {
263
262
prefix += '0, '
264
263
}
265
264
}
266
- }
267
- // Make sure we can't accidentally continue a previous statement.
268
- // eg in `exports.a = [0]` the `[0]` could continue a previous statement if that
269
- // did not have a semicolon. By putting `void ` in front we force a new statement.
270
- else if ( node . parent . type === 'ExpressionStatement' ) {
265
+ } else if (
266
+ // Make sure we can't accidentally continue a previous statement.
267
+ // eg in `exports.a = [0]` the `[0]` could continue a previous statement if that
268
+ // did not have a semicolon. By putting `void ` in front we force a new statement.
269
+ node . parent . type === 'ExpressionStatement'
270
+ ) {
271
271
prefix += 'void '
272
272
}
273
273
Original file line number Diff line number Diff line change 1
1
const test = require ( 'tape' )
2
- const assert = require ( 'assert' )
3
2
const fs = require ( 'fs' )
4
3
const path = require ( 'path' )
5
4
const browserify = require ( 'browserify' )
You can’t perform that action at this time.
0 commit comments