Skip to content

Commit

Permalink
upgrade to babel 7
Browse files Browse the repository at this point in the history
  • Loading branch information
rherwig committed Sep 16, 2018
1 parent 18d6dd4 commit c08e5ba
Show file tree
Hide file tree
Showing 8 changed files with 2,556 additions and 551 deletions.
12 changes: 9 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
{
"presets": [
["env", {
["@babel/preset-env", {
"targets": {
"node": "current",
"browsers": ["last 2 versions"]
}
}],
"stage-2",
"react"
"@babel/preset-react"
],
"plugins": [
["@babel/plugin-proposal-decorators", {
"legacy": true
}],
["@babel/plugin-proposal-class-properties", {
"loose": true
}],
"@babel/plugin-syntax-dynamic-import",
"universal-import"
]
}
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ directory.
The following changes have been implemented in the course of developing
the template.

### 2.5.0
* Switched to babel 7
* Switched to nodemon for watch mode

### 2.4.0
* CSS chunking is back, thanks to the now webpack 4 compliant version of [extract-css-chunks-webpack-plugin](https://github.com/faceyspacey/extract-css-chunks-webpack-plugin)
* Special thanks to [@zackljackson](https://github.com/zackljackson) for making this possible
Expand Down Expand Up @@ -132,7 +136,6 @@ since the former is not supported with webpack 4 anymore
The following features are planned for future upgrades of the template.
If there are any request, feel free to open an issue or a pull request.

- [ ] Upgrade to babel 7, once it is stable
- [ ] Provide service worker template branch
- [ ] Provide fully features PWA example in a separate repository
- [ ] Extend this list ;-)
Expand Down
9 changes: 9 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"verbose": true,
"execMap": {
"js": "babel-node"
},
"watch": [
"src/index.js"
]
}
Loading

0 comments on commit c08e5ba

Please sign in to comment.