Skip to content

Commit

Permalink
fix: make xo happy
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Mar 22, 2019
1 parent 98c8d27 commit dc66662
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ensureCachePath = co.wrap(function*() {

module.exports = co.wrap(function*(name, opts = {}) {
const outDir = yield ensureCachePath()
let parsed = name.split(',').map(parse)
const parsed = name.split(',').map(parse)

// When you run `package-size ./dist/index.js,react`
// Or `package-size react-dom,react --cwd`
Expand Down Expand Up @@ -197,7 +197,9 @@ module.exports = co.wrap(function*(name, opts = {}) {
if (opts.analyze) {
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')

prodConfig.plugins.push(new BundleAnalyzerPlugin({ analyzerPort: opts.port }))
prodConfig.plugins.push(
new BundleAnalyzerPlugin({ analyzerPort: opts.port })
)
console.log('Please wait..')
const stats = yield runWebpack(prodConfig)
console.log(stats.toString(statOptions))
Expand Down

0 comments on commit dc66662

Please # to comment.