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 11'use strict'
22const path = require ( 'path' )
33const Analyzer = require ( '@goto-bus-stop/common-shake' ) . Analyzer
4- const evaluateConst = require ( '@goto-bus-stop/common-shake' ) . evaluateConst
54const transformAst = require ( 'transform-ast' )
65const wrapComment = require ( 'wrap-comment' )
76const through = require ( 'through2' )
@@ -263,11 +262,12 @@ function createStream (opts, api) {
263262 prefix += '0, '
264263 }
265264 }
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+ ) {
271271 prefix += 'void '
272272 }
273273
Original file line number Diff line number Diff line change 11const test = require ( 'tape' )
2- const assert = require ( 'assert' )
32const fs = require ( 'fs' )
43const path = require ( 'path' )
54const browserify = require ( 'browserify' )
You can’t perform that action at this time.
0 commit comments