ssr-plugin-react 6.1.21 → 6.1.22-alpha.0

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,14 @@
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.22-alpha.0](https://github.com/zhangyuang/ssr/compare/v6.1.21...v6.1.22-alpha.0) (2021-12-10)
7
+
8
+ **Note:** Version bump only for package ssr-plugin-react
9
+
10
+
11
+
12
+
13
+
6
14
  ## [6.1.21](https://github.com/zhangyuang/ssr/compare/v6.1.20...v6.1.21) (2021-12-09)
7
15
 
8
16
  **Note:** Version bump only for package ssr-plugin-react
@@ -22,7 +22,7 @@ const getServerWebpack = (chain) => {
22
22
  const modulesDir = [(0, path_1.join)(cwd, './node_modules')];
23
23
  modulesDir.push((0, ssr_server_utils_1.getLocalNodeModules)());
24
24
  chain.externals((0, ssr_server_utils_1.nodeExternals)({
25
- whitelist: [/\.(css|less|sass|scss)$/, /antd.*?(style)/].concat(whiteList || []),
25
+ whitelist: whiteList,
26
26
  // externals Dir contains example/xxx/node_modules ssr/node_modules
27
27
  modulesDir
28
28
  }));
@@ -19,7 +19,7 @@ const getServerWebpack = (chain) => {
19
19
  const modulesDir = [join(cwd, './node_modules')];
20
20
  modulesDir.push(getLocalNodeModules());
21
21
  chain.externals(nodeExternals({
22
- whitelist: [/\.(css|less|sass|scss)$/, /antd.*?(style)/].concat(whiteList || []),
22
+ whitelist: whiteList,
23
23
  // externals Dir contains example/xxx/node_modules ssr/node_modules
24
24
  modulesDir
25
25
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssr-plugin-react",
3
- "version": "6.1.21",
3
+ "version": "6.1.22-alpha.0",
4
4
  "description": "plugin-react for ssr",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -56,8 +56,8 @@
56
56
  "serialize-javascript": "^6.0.0",
57
57
  "ssr-client-utils": "^6.1.18",
58
58
  "ssr-hoc-react": "^6.1.18",
59
- "ssr-server-utils": "^6.1.21",
60
- "ssr-webpack": "^6.1.21",
59
+ "ssr-server-utils": "^6.1.22-alpha.0",
60
+ "ssr-webpack": "^6.1.22-alpha.0",
61
61
  "terser-webpack-plugin": "^2.3.5",
62
62
  "url-loader": "^4.1.1",
63
63
  "vite": "^2.7.0-beta.10",
@@ -73,5 +73,5 @@
73
73
  "@types/webpack": "^4.41.10",
74
74
  "ssr-types-react": "^6.1.18"
75
75
  },
76
- "gitHead": "8a6eb76df0a07597839e867ad5dd2fec13f3a92f"
76
+ "gitHead": "11fa394de55493d55dee41a8f7efbf7814a46170"
77
77
  }
@@ -23,7 +23,7 @@ const getServerWebpack = (chain: WebpackChain) => {
23
23
  const modulesDir = [join(cwd, './node_modules')]
24
24
  modulesDir.push(getLocalNodeModules())
25
25
  chain.externals(nodeExternals({
26
- whitelist: [/\.(css|less|sass|scss)$/, /antd.*?(style)/].concat(whiteList as RegExp[] || []),
26
+ whitelist: whiteList,
27
27
  // externals Dir contains example/xxx/node_modules ssr/node_modules
28
28
  modulesDir
29
29
  }))