Skip to content

Commit

Permalink
Update babelrc to compile for electron 2
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Dec 5, 2018
1 parent 4ebe1a0 commit 79dc2a4
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
{
"presets": [
"@babel/env",
[
"@babel/preset-env",
{
"targets": {
"electron": 2
}
}
],
"@babel/react"
],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
"@babel/proposal-export-default-from",
["@babel/proposal-class-properties", { "loose": true }],
[
"@babel/proposal-class-properties",
{
"loose": true
}
],
"@babel/proposal-throw-expressions",
"@babel/syntax-dynamic-import"
],
"sourceMaps": "inline"
}
}

0 comments on commit 79dc2a4

Please sign in to comment.