From 9d590261ad5fa492d4c72e1f2d6260bdc0054f79 Mon Sep 17 00:00:00 2001 From: Ian Walter Date: Mon, 22 Jul 2019 12:21:52 -0400 Subject: [PATCH] let -> const --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index a15c1e6..f709fef 100644 --- a/index.js +++ b/index.js @@ -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 === '' @@ -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