Skip to content

Instantly share code, notes, and snippets.

@yokada
Created September 4, 2018 21:22
Show Gist options
  • Save yokada/d92f91077ee6c3c28e8caa67ac7652f0 to your computer and use it in GitHub Desktop.
Save yokada/d92f91077ee6c3c28e8caa67ac7652f0 to your computer and use it in GitHub Desktop.
Upgrade to babel 7
$ git diff .babelrc
diff --git a/.babelrc b/.babelrc
index 53b35ab..15eefa0 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,16 +1,16 @@
{
"plugins": [
"source-map-support",
- "transform-runtime"
+ "@babel/plugin-transform-runtime",
+ "@babel/plugin-syntax-dynamic-import"
],
"presets": [
- [ "env", { "node": "8.10" } ],
- "stage-3"
+ [ "@babel/preset-env", { "node": "8.10" } ]
],
"env": {
"test": {
"presets": [
- [ "env", { "targets": { "node": "8.10" } } ]
+ [ "@babel/preset-env", { "targets": { "node": "8.10" } } ]
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment