Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Electron version from env when transpiling in a non-Electron process
Browse files Browse the repository at this point in the history
Co-Authored-By: Vanessa Yuen <vanessayuenn@users.noreply.github.com>
  • Loading branch information
smashwilson and vanessayuenn committed Mar 6, 2019
1 parent 690327e commit 14c238c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down

0 comments on commit 14c238c

Please sign in to comment.