From 142338ede69c3828c8a3c9fa7bacd4850762e4a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Nuno=20Monteiro?= Date: Sun, 21 Oct 2018 18:00:06 +0100 Subject: [PATCH] fix: stringify `compiler.entrypoint` in shims (#541) --- src/steps/shim.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steps/shim.ts b/src/steps/shim.ts index a6818e9..8dc4c67 100644 --- a/src/steps/shim.ts +++ b/src/steps/shim.ts @@ -22,7 +22,7 @@ export default function(compiler: NexeCompiler, next: () => Promise) { compiler.shims.push( wrap(` if (!process.send) { - process.argv.splice(1,0, require.resolve("${compiler.entrypoint}")) + process.argv.splice(1,0, require.resolve(${JSON.stringify(compiler.entrypoint)})) } `) )