0
我正在尝试使用react-router-4来设置服务器重做响应。虽然它在前端(Webpack)上工作得很好。看起来preact-compat
在服务器端使用时不起作用。我正在使用babel-register
,因此会传输代码。React-Router-v4不通过Babel寄存器对Preact进行操作
我有一个分支在这里以供参考: https://github.com/abarcenas29/preact-sandbox-v0/tree/wip/isomorphic-react
运行: yarn run install
yarn run start:prod
去localhost:3100