ssr-plugin-react 6.1.58 → 6.1.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,49 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.1.64](https://github.com/zhangyuang/ssr/compare/v6.1.63...v6.1.64) (2022-02-15)
7
+
8
+ **Note:** Version bump only for package ssr-plugin-react
9
+
10
+
11
+
12
+
13
+
14
+ ## [6.1.63](https://github.com/zhangyuang/ssr/compare/v6.1.62...v6.1.63) (2022-02-15)
15
+
16
+ **Note:** Version bump only for package ssr-plugin-react
17
+
18
+
19
+
20
+
21
+
22
+ ## [6.1.62](https://github.com/zhangyuang/ssr/compare/v6.1.61...v6.1.62) (2022-02-15)
23
+
24
+ **Note:** Version bump only for package ssr-plugin-react
25
+
26
+
27
+
28
+
29
+
30
+ ## [6.1.60](https://github.com/zhangyuang/ssr/compare/v6.1.59...v6.1.60) (2022-02-09)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * vite production inputOptions ([573b219](https://github.com/zhangyuang/ssr/commit/573b2193b2aef17a814abf8c0d8f53d6f7ba7719))
36
+
37
+
38
+
39
+
40
+
41
+ ## [6.1.59](https://github.com/zhangyuang/ssr/compare/v6.1.58...v6.1.59) (2022-02-08)
42
+
43
+ **Note:** Version bump only for package ssr-plugin-react
44
+
45
+
46
+
47
+
48
+
6
49
  ## [6.1.58](https://github.com/zhangyuang/ssr/compare/v6.1.57...v6.1.58) (2022-01-29)
7
50
 
8
51
  **Note:** Version bump only for package ssr-plugin-react
package/README.md CHANGED
@@ -16,7 +16,6 @@
16
16
  <a href="https://github.com/zhangyuang/ssr/actions" target="_blank"><img src="https://github.com/zhangyuang/ssr/workflows/CI/badge.svg" alt="githubActions" />
17
17
  <a href="https://www.cypress.io/" target="_blank"><img src="https://img.shields.io/badge/cypress-dashboard-brightgreen.svg" alt="cypress" />
18
18
  <a href="https://npmcharts.com/compare/ssr" target="_blank"><img src="https://img.shields.io/npm/dm/ssr" alt="download" />
19
- <a href="https://github.com/zhangyuang/ssr" target="_blank"><img src="https://img.shields.io/tokei/lines/github/zhangyuang/ssr-lines?color=4dc71f" alt="Node" />
20
19
  <a href="https://github.com/zhangyuang/ssr" target="_blank"><img src="https://img.shields.io/badge/node-%3E=12-green.svg?color=4dc71f" alt="Node" ></a>
21
20
  <a href="https://github.com/zhangyuang/ssr" target="_blank"><img src="https://img.shields.io/github/stars/zhangyuang/ssr.svg?color=4dc71f" alt="Node" ></a>
22
21
  </div>
@@ -41,7 +40,6 @@
41
40
  - 可能会改动技术栈,如从 `Vue2` 升级为 `Vue3`,从 `Vue3` 降级为 `Vue2` 或 `React/Vue` 互相切换
42
41
  - 需要在服务端渲染场景下开箱即用使用 `antd` `vant` 等流行 `ui` 库
43
42
  - 需要能够同时支持 `Webpack`, `Vite` 两种开发工具,以便同时得到快速的启动速度 `HMR` 速度以及稳定的生产环境代码
44
-
45
43
  ## 哪些应用在使用
46
44
 
47
45
  正在使用这个项目的公司(应用), 如果您正在使用但名单中没有列出来的话请提 [issue](https://github.com/zhangyuang/ssr/issues),欢迎推广分享,我们将随时提供技术支持
@@ -127,7 +125,7 @@
127
125
  - 🧲 插件驱动:基于插件架构,用户更加专注于业务逻辑;
128
126
  - 💯 Serverless优先:一键发布到各种Serverless平台,也支持传统Web Server,比如Egg、Midway、Nest等。
129
127
  - 🛡 高可用场景,可无缝从SSR降级到CSR,最佳容灾方案。
130
- - 😄 功能丰富,构建工具支持 Webpack/Vite
128
+ - 😄 功能丰富,构建工具支持 Webpack/Vite,全新的 `Vue3 Script Setup` 支持
131
129
 
132
130
  ## 已实现的功能
133
131
 
@@ -273,7 +271,7 @@ $ npm run start:vite # 以 vite 模式启动,等价于 npx ssr start --vite
273
271
 
274
272
  <div style="display:flex">
275
273
  <!-- <img src="https://res.wx.qq.com/op_res/7F1t4Z8yCHWilehbcFGjAj0yVn0URMiWBGVJa-TVu_eqw5IwUXA2kPYBnfX6YRHy0FVBB-yC6l0IEL02QTJkLg" width="300"> -->
276
- <img src="https://doc.ssr-fc.com/images/wechat.jpeg" width="300">
274
+ <img src="https://res.wx.qq.com/op_res/UQMlAGgJt38dZ0iX_udYYLvwceEOo5w6OAcZ5XodX_aMSZ_cpvCtpbfQaLGkPnDMoK0Rnbhgr7FjpQ8YUjaX-Q" width="300">
277
275
  </div>
278
276
 
279
277
  ## 前端开发手册
package/cjs/tools/vite.js CHANGED
@@ -42,12 +42,12 @@ const serverConfig = {
42
42
  build: {
43
43
  ssr: reactServerEntry,
44
44
  outDir: serverOutPut,
45
- rollupOptions: {
46
- input: isDev ? reactClientEntry : '',
45
+ rollupOptions: Object.assign(isDev ? { input: reactClientEntry } : {}, // setting prebundle list by client-entry in dev
46
+ {
47
47
  output: {
48
48
  entryFileNames: 'Page.server.js'
49
49
  }
50
- }
50
+ })
51
51
  },
52
52
  define: {
53
53
  __isBrowser__: false,
package/esm/tools/vite.js CHANGED
@@ -39,12 +39,12 @@ const serverConfig = {
39
39
  build: {
40
40
  ssr: reactServerEntry,
41
41
  outDir: serverOutPut,
42
- rollupOptions: {
43
- input: isDev ? reactClientEntry : '',
42
+ rollupOptions: Object.assign(isDev ? { input: reactClientEntry } : {}, // setting prebundle list by client-entry in dev
43
+ {
44
44
  output: {
45
45
  entryFileNames: 'Page.server.js'
46
46
  }
47
- }
47
+ })
48
48
  },
49
49
  define: {
50
50
  __isBrowser__: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssr-plugin-react",
3
- "version": "6.1.58",
3
+ "version": "6.1.64",
4
4
  "description": "plugin-react for ssr",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -55,10 +55,10 @@
55
55
  "postcss-safe-parser": "4.0.1",
56
56
  "react-dev-utils": "^11.0.4",
57
57
  "serialize-javascript": "^6.0.0",
58
- "ssr-client-utils": "^6.1.58",
59
- "ssr-hoc-react": "^6.1.58",
60
- "ssr-server-utils": "^6.1.58",
61
- "ssr-webpack": "^6.1.58",
58
+ "ssr-client-utils": "^6.1.62",
59
+ "ssr-hoc-react": "^6.1.64",
60
+ "ssr-server-utils": "^6.1.59",
61
+ "ssr-webpack": "^6.1.62",
62
62
  "terser-webpack-plugin": "^2.3.5",
63
63
  "url-loader": "^4.1.1",
64
64
  "vite": "^2.7.0",
@@ -74,7 +74,7 @@
74
74
  "@types/react-router-dom": "^5.1.3",
75
75
  "@types/webpack": "^4.41.10",
76
76
  "concurrently": "^5.1.0",
77
- "ssr-types-react": "^6.1.58"
77
+ "ssr-types-react": "^6.1.62"
78
78
  },
79
- "gitHead": "4c4165424f5cd610db8ca668c423ecbd3d656f45"
79
+ "gitHead": "90b805e481833cc0d8ff967ffbd2991ad6b9fecc"
80
80
  }
package/src/tools/vite.ts CHANGED
@@ -40,12 +40,14 @@ const serverConfig: UserConfig = {
40
40
  build: {
41
41
  ssr: reactServerEntry,
42
42
  outDir: serverOutPut,
43
- rollupOptions: {
44
- input: isDev ? reactClientEntry : '',
45
- output: {
46
- entryFileNames: 'Page.server.js'
43
+ rollupOptions: Object.assign(
44
+ isDev ? { input: reactClientEntry } : {}, // setting prebundle list by client-entry in dev
45
+ {
46
+ output: {
47
+ entryFileNames: 'Page.server.js'
48
+ }
47
49
  }
48
- }
50
+ )
49
51
  },
50
52
  define: {
51
53
  __isBrowser__: false,