2017-05-26 44 views
0

我正在尝试使用react-router-4来设置服务器重做响应。虽然它在前端(Webpack)上工作得很好。看起来preact-compat在服务器端使用时不起作用。我正在使用babel-register,因此会传输代码。React-Router-v4不通过Babel寄存器对Preact进行操作

image

我有一个分支在这里以供参考: https://github.com/abarcenas29/preact-sandbox-v0/tree/wip/isomorphic-react

运行: yarn run install yarn run start:prod

localhost:3100

回答