react-router4路由分包加载,webpack4 + react16 + react-router4 + babel7包版本匹配
近来想要自己搭建react环境进行学习,现在react版本为react16.x,使用的babel是6.x版本的,然后后面路由分包需要分包加载,react-router4版本使用官方提供的@babel/plugin-syntax-dynamic-import + loadable-components ,地址https://reacttraining.com/react-router/web/gui...
原创
2019-03-12 15:19:59 ·
1607 阅读 ·
0 评论