Skip to content

Commit

Permalink
Moved Babel config to .babelrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Chance Dickson committed Dec 22, 2017
1 parent c14a1d6 commit 41638f0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .babelrc
@@ -0,0 +1,7 @@
{
"presets": ["es2015", "react"],
"plugins": [
"transform-object-rest-spread",
["transform-react-jsx", {"pragma": "Preact.h"}]
]
}
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "symbaroum",
"version": "0.1.7",
"version": "0.1.8",
"private": true,
"scripts": {
"build": "webpack",
Expand Down
6 changes: 1 addition & 5 deletions webpack.config.js
Expand Up @@ -30,11 +30,7 @@ module.exports = {
test: /\.js$/,
include: relative("src"),
use: {
loader: "babel-loader",
options: {
presets: ["es2015", "react"],
plugins: ["transform-object-rest-spread"]
}
loader: "babel-loader"
}
},
{
Expand Down

0 comments on commit 41638f0

Please sign in to comment.