-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP]feat:support inject context to do isomorphic #2
base: master
Are you sure you want to change the base?
Conversation
@jtyjty99999, thanks for your PR! By analyzing the history of the files in this pull request, we identified @atian25 to be a potential reviewer. |
0f2894a
to
b7d1e2a
Compare
@@ -5,9 +5,12 @@ const path = require('path'); | |||
module.exports = appInfo => { | |||
const config = {}; | |||
|
|||
config.view = { | |||
config.react = { | |||
extname: 'js', | |||
dir: path.join(appInfo.baseDir, 'app/view'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个在 view 那边配
强烈支持一个,加速进度😊😊 |
e369bb8
to
54376e3
Compare
@jtyjty99999 同构这个先不管,先发一个 SSR 的 1.0 版本? |
54376e3
to
66aa25e
Compare
exports.view = { | ||
defaultViewEngine: 'react', | ||
mapping :{ | ||
'.js':'react' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不是 jsx?
"react": "^15.4.2", | ||
"react-dom": "^15.4.2" | ||
"escape-html": "^1.0.3", | ||
"react": "^15.5.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
react 跟着插件走?应用是怎么用 react 的?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@popomore 正在升级插件(支持单页面同构,去掉内置 react 依赖),react 和 react-dom 不想再内置插件,大家意见?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
写个 peerdep 吧,不然前后端会有多个 react 版本
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好
这个怎么用啊,我都报了好多错啊 |
Checklist
npm test
passesAffected core subsystem(s)
Description of change