From aea3ff22a17254fd8ece0cdec5039e738b0bccfc Mon Sep 17 00:00:00 2001 From: Samuel Reed Date: Fri, 5 Mar 2021 15:52:14 -0500 Subject: [PATCH] fix(options): trim extensions See #122 --- babel-watch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babel-watch.js b/babel-watch.js index 356967a..01cf0b0 100755 --- a/babel-watch.js +++ b/babel-watch.js @@ -121,7 +121,7 @@ const cwd = process.cwd(); const only = program.only; const ignore = program.ignore; -const transpileExtensions = program.extensions; +const transpileExtensions = program.extensions.map((ext) => ext.trim()); const debug = Boolean(program.debug || program.debugBrk || program.inspect || program.inspectBrk) const mainModule = program.args[0];