@umijs/plugins 4.6.64 → 4.6.66

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.
@@ -146,14 +146,14 @@ export function genUnmount(mountElementId: string) {
146
146
  return async (props: any) => {
147
147
  const root = __getRoot();
148
148
 
149
- // support react 18 unmount
149
+ // support react 18+ unmount
150
150
  if (typeof root?.unmount === 'function') {
151
151
  root.unmount();
152
152
  } else {
153
153
  const container = props?.container
154
154
  ? props.container.querySelector(`#${mountElementId}`)
155
155
  : document.getElementById(mountElementId);
156
- if (container) {
156
+ if (container && typeof ReactDOM.unmountComponentAtNode === 'function') {
157
157
  ReactDOM.unmountComponentAtNode(container);
158
158
  }
159
159
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/plugins",
3
- "version": "4.6.64",
3
+ "version": "4.6.66",
4
4
  "description": "@umijs/plugins",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/plugins#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -46,12 +46,12 @@
46
46
  "styled-components": "6.1.1",
47
47
  "tslib": "^2",
48
48
  "warning": "^4.0.3",
49
- "@umijs/bundler-utils": "4.6.64",
49
+ "@umijs/bundler-utils": "4.6.66",
50
50
  "@umijs/valtio": "1.0.4"
51
51
  },
52
52
  "devDependencies": {
53
53
  "antd": "^4.24.1",
54
- "umi": "4.6.64"
54
+ "umi": "4.6.66"
55
55
  },
56
56
  "publishConfig": {
57
57
  "access": "public"