[change] Compile using Babel 7

Fix #1170
Close #1205
Close #1191
This commit is contained in:
Nicolas Gallagher
2018-12-20 14:41:34 +00:00
parent 4040151ee6
commit 77d4bd8a97
17 changed files with 2373 additions and 2134 deletions
+2 -1
View File
@@ -7,12 +7,13 @@
"release": "yarn build && git checkout gh-pages && rm -rf ../../examples && mv dist ../../examples && git add -A && git commit -m \"Examples deploy\" && git push origin gh-pages && git checkout -"
},
"dependencies": {
"babel-runtime": "^6.26.0",
"@babel/runtime": "^7.2.0",
"react": "^16.5.1",
"react-dom": "^16.5.1",
"react-native-web": "0.9.13"
},
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.2.0",
"babel-plugin-react-native-web": "0.9.13",
"babel-plugin-transform-runtime": "^6.23.0",
"file-loader": "^1.1.11",
+2 -2
View File
@@ -34,10 +34,10 @@ module.exports = {
loader: 'babel-loader',
options: {
cacheDirectory: false,
presets: ['react-native'],
presets: ['module:metro-react-native-babel-preset'],
plugins: [
// needed to support async/await
'transform-runtime'
'@babel/plugin-transform-runtime'
]
}
}