Skip to content

Commit c08e5ba

Browse files
committed
upgrade to babel 7
1 parent 18d6dd4 commit c08e5ba

8 files changed

+2556
-551
lines changed

.babelrc

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
{
22
"presets": [
3-
["env", {
3+
["@babel/preset-env", {
44
"targets": {
55
"node": "current",
66
"browsers": ["last 2 versions"]
77
}
88
}],
9-
"stage-2",
10-
"react"
9+
"@babel/preset-react"
1110
],
1211
"plugins": [
12+
["@babel/plugin-proposal-decorators", {
13+
"legacy": true
14+
}],
15+
["@babel/plugin-proposal-class-properties", {
16+
"loose": true
17+
}],
18+
"@babel/plugin-syntax-dynamic-import",
1319
"universal-import"
1420
]
1521
}

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ directory.
9090
The following changes have been implemented in the course of developing
9191
the template.
9292

93+
### 2.5.0
94+
* Switched to babel 7
95+
* Switched to nodemon for watch mode
96+
9397
### 2.4.0
9498
* 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)
9599
* Special thanks to [@zackljackson](https://github.com/zackljackson) for making this possible
@@ -132,7 +136,6 @@ since the former is not supported with webpack 4 anymore
132136
The following features are planned for future upgrades of the template.
133137
If there are any request, feel free to open an issue or a pull request.
134138

135-
- [ ] Upgrade to babel 7, once it is stable
136139
- [ ] Provide service worker template branch
137140
- [ ] Provide fully features PWA example in a separate repository
138141
- [ ] Extend this list ;-)

nodemon.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"verbose": true,
3+
"execMap": {
4+
"js": "babel-node"
5+
},
6+
"watch": [
7+
"src/index.js"
8+
]
9+
}

0 commit comments

Comments
 (0)