From 30fdc0592e254ff2bb53b7d28f83e4ca5919602c Mon Sep 17 00:00:00 2001 From: Frank Wilkerson Date: Thu, 25 Jan 2018 22:01:38 -0700 Subject: [PATCH] consistent naming --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 11526e8..4e8036a 100644 --- a/src/index.js +++ b/src/index.js @@ -99,7 +99,7 @@ export default async function microbundle(options) { } if (options.watch) { - const emitEvents = options.emit; + const emit = options.emit; return new Promise( (resolve, reject) => { process.stdout.write(chalk.blue(`Watching source, compiling to ${relative(cwd, dirname(options.output))}:\n`)); steps.map( options => { @@ -107,7 +107,7 @@ export default async function microbundle(options) { output: options.outputOptions, watch: WATCH_OPTS }, options.inputOptions)).on('event', e => { - if (emitEvents) { + if (emit) { process.emit('event', e); } if (e.code==='ERROR' || e.code==='FATAL') {