Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jtyjty99999
Copy link
Member

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@mention-bot
Copy link

@jtyjty99999, thanks for your PR! By analyzing the history of the files in this pull request, we identified @atian25 to be a potential reviewer.

@@ -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'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个在 view 那边配

@MinJieLiu
Copy link

强烈支持一个,加速进度😊😊

@jtyjty99999 jtyjty99999 force-pushed the contextInject branch 3 times, most recently from e369bb8 to 54376e3 Compare May 11, 2017 03:40
@atian25
Copy link
Member

atian25 commented Jun 16, 2017

@jtyjty99999 同构这个先不管,先发一个 SSR 的 1.0 版本?

exports.view = {
defaultViewEngine: 'react',
mapping :{
'.js':'react'
Copy link
Member

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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react 跟着插件走?应用是怎么用 react 的?

Copy link
Contributor

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 不想再内置插件,大家意见?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

写个 peerdep 吧,不然前后端会有多个 react 版本

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chengnuo
Copy link

这个怎么用啊,我都报了好多错啊

@hubcarl
Copy link
Contributor

hubcarl commented Nov 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants