From 14c238cff430e37bf37333b15cfc41239e15cc3e Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Wed, 6 Mar 2019 10:27:44 -0500 Subject: [PATCH] Electron version from env when transpiling in a non-Electron process Co-Authored-By: Vanessa Yuen --- .babelrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.babelrc.js b/.babelrc.js index b4b117e5d1..aa85b91183 100644 --- a/.babelrc.js +++ b/.babelrc.js @@ -11,7 +11,7 @@ module.exports = { ], presets: [ ["@babel/preset-env", { - targets: {electron: process.versions.electron} + targets: {electron: process.versions.electron || process.env.ELECTRON_VERSION} }], "@babel/preset-react" ],