2017-05-26 83 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

回答