ssr-plugin-react 6.1.59 → 6.1.60
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 +11 -0
- package/cjs/tools/vite.js +3 -3
- package/esm/tools/vite.js +3 -3
- package/package.json +2 -2
- package/src/tools/vite.ts +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.60](https://github.com/zhangyuang/ssr/compare/v6.1.59...v6.1.60) (2022-02-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* vite production inputOptions ([573b219](https://github.com/zhangyuang/ssr/commit/573b2193b2aef17a814abf8c0d8f53d6f7ba7719))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [6.1.59](https://github.com/zhangyuang/ssr/compare/v6.1.58...v6.1.59) (2022-02-08)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package ssr-plugin-react
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "6.1.60",
|
|
4
4
|
"description": "plugin-react for ssr",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"concurrently": "^5.1.0",
|
|
77
77
|
"ssr-types-react": "^6.1.58"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "c035481f835c349bc87cecc350e8a16bde13c3b0"
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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,
|