Skip to content

Commit

Permalink
build - babel - move config to babelrc
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis committed Mar 12, 2019
1 parent 10691d7 commit 9860f5e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 26 deletions.
25 changes: 22 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
{
"presets": [["env", { "targets": { "browsers": [">0.25%", "not ie 11", "not op_mini all"] } } ], "react", "stage-0"],
"plugins": ["transform-runtime", "transform-async-to-generator", "transform-class-properties"]
}
"presets": [
[
"env",
{
"targets": {
"browsers": [
">0.25%",
"not ie 11",
"not op_mini all"
]
}
}
],
"react",
"stage-0"
],
"plugins": [
"transform-runtime",
"transform-async-to-generator",
"transform-class-properties"
]
}
24 changes: 1 addition & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,7 @@
},
"browserify": {
"transform": [
[
"babelify",
{
"presets": [
[
"env",
{
"browsers": [
">0.25%",
"not ie 11",
"not op_mini all"
]
}
],
"stage-0"
]
},
{
"plugins": [
"transform-class-properties"
]
}
],
"babelify",
"reactify",
"brfs"
]
Expand Down

0 comments on commit 9860f5e

Please sign in to comment.