From d315aaa5598c16458e119f8accc3c2a309fb4fb0 Mon Sep 17 00:00:00 2001 From: circuit10 Date: Sun, 19 Sep 2021 13:35:21 +0100 Subject: [PATCH] Fix entryPoint being 0 0 is a falsey value --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index a8c457e..795c67a 100755 --- a/src/index.js +++ b/src/index.js @@ -58,7 +58,7 @@ const bundleContents = fs.readFileSync(bundleLocation); let ast = acorn.parse(bundleContents, {}); // Get the entry point in the bundle. -if (config.type === 'browserify' && !config.entryPoint) { +if (config.type === 'browserify' && config.entryPoint === undefined) { console.log('* Using auto-discovered browserify entry point...'); config.entryPoint = ast.body[0].expression.arguments[2].elements[0].value; }