最新回答 / CregskiN
老师的babel版本比较老,现在babel精简很多了。关于这门课的webpack babel配置,你可以参考我的仓库https://github.com/CregskiN/mobx-demo
2020-02-24
➜ mobx-test cnpm install babel-plugin-transform-decorators-legency -D
✖ Install fail! Error: GET https://r.npm.taobao.org/babel-plugin-transform-decorators-legency response 404 status
Error: GET https://r.npm.taobao.org/babel-plugin-transform-decorators-legency response 404 status
✖ Install fail! Error: GET https://r.npm.taobao.org/babel-plugin-transform-decorators-legency response 404 status
Error: GET https://r.npm.taobao.org/babel-plugin-transform-decorators-legency response 404 status
2020-02-24
最新回答 / CregskiN
mobx Store实例化并导出,在page导入store,getInitialProps使用store@action修饰的方法,可以认为是你这里说的发起action吗?
2019-12-15
babel 7
plugins: [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose" : true }]
]
plugins: [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose" : true }]
]
2019-10-29