From 93d319275f1b139fce11ae8eccb82e636ad82708 Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Thu, 13 Feb 2020 12:04:26 +0100 Subject: [PATCH] Fix imports in lib/start.ts Change-type: patch --- lib/start.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/start.ts b/lib/start.ts index 38f62f40..d377d5c4 100644 --- a/lib/start.ts +++ b/lib/start.ts @@ -21,7 +21,9 @@ // if passing `ELECTRON_RUN_AS_NODE`, you have to pass the path to the asar // or the entry point file (this file) manually as an argument. -if (process.env.ELECTRON_RUN_AS_NODE) { +import { env } from 'process'; + +if (env.ELECTRON_RUN_AS_NODE) { import('./gui/modules/child-writer'); } else { import('./gui/etcher');