@umijs/renderer-react 4.1.4 → 4.1.6

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.
@@ -7,7 +7,8 @@ export function fetchServerLoader(_ref) {
7
7
  url: window.location.href
8
8
  }).toString();
9
9
  // 在有basename的情况下__serverLoader的请求路径需要加上basename
10
- var url = "".concat(withEndSlash(basename), "__serverLoader?").concat(query);
10
+ // FIXME: 先临时解自定义 serverLoader 请求路径的问题,后续改造 serverLoader 时再提取成类似 runtimeServerLoader 的配置项
11
+ var url = "".concat(withEndSlash(window.umiServerLoaderPath || basename), "__serverLoader?").concat(query);
11
12
  fetch(url, {
12
13
  credentials: 'include'
13
14
  }).then(function (d) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/renderer-react",
3
- "version": "4.1.4",
3
+ "version": "4.1.6",
4
4
  "description": "@umijs/renderer-react",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/renderer-react#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",