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)})) } `) )