Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Commit

Permalink
let -> const
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Walter committed Jul 22, 2019
1 parent 4dca67d commit 9d59026
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default async function dist (options) {
esm = getFormat(options.esm, pkg.module),
browser = getFormat(options.browser, pkg.browser)
} = options
let inline = options.inline || options.inline === ''
const inline = options.inline || options.inline === ''

cjs = cjs || cjs === ''
esm = esm || esm === ''
Expand Down Expand Up @@ -102,8 +102,8 @@ export default async function dist (options) {
esmBundle = await bundler.generate({ format: 'esm' })
}

let cjsCode = cjs ? cjsBundle.output[0].code : undefined
let esmCode = (esm || browser) ? esmBundle.output[0].code : undefined
const cjsCode = cjs ? cjsBundle.output[0].code : undefined
const esmCode = (esm || browser) ? esmBundle.output[0].code : undefined

// Determine the output file paths.
const dir = path.extname(output) ? path.dirname(output) : output
Expand Down

0 comments on commit 9d59026

Please sign in to comment.