1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Fix with-mobx example (#4394)

fixes #4390

* Installing only `babel-plugin-transform-decorators-legacy` didn't work
* It also needs to install `babel-plugin-transform-class-properties`
This commit is contained in:
yhirano55 2018-05-16 17:20:13 +09:00 committed by Tim Neutkens
parent 4b0f10ba93
commit e8c7dd4958
2 changed files with 4 additions and 2 deletions

View file

@ -3,6 +3,7 @@
"next/babel"
],
"plugins": [
"transform-decorators-legacy"
"transform-decorators-legacy",
"transform-class-properties"
]
}
}

View file

@ -15,6 +15,7 @@
},
"license": "ISC",
"devDependencies": {
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4"
}
}