From de966e012a7306cc492a12547638a8d494846301 Mon Sep 17 00:00:00 2001 From: xzdarcy <419144352@qq.com> Date: Tue, 12 Jul 2022 23:15:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20compatible=20with=20react?= =?UTF-8?q?18?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c0f4837..b05ac71 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,10 @@ "main": "dist/index.js", "module": "dist/index.esm.js", "typings": "dist/index.d.ts", + "peerDependencies": { + "react": "^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0", + "react-dom": "^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0" + }, "dependencies": { "@interactjs/types": "^1.10.11", "@types/lodash": "^4.14.177", @@ -39,14 +43,14 @@ "framework-utils": "^1.1.0", "interactjs": "^1.10.11", "lodash": "^4.17.21", - "lottie-web": "^5.8.1", - "react": "^16.12.0 || ^17.0.0", + "antd": "^4.16.13", "react-virtualized": "^9.22.3" }, "devDependencies": { "@types/howler": "^2.2.4", + "lottie-web": "^5.8.1", + "react": "^17.0.0", "@umijs/test": "^3.0.5", - "antd": "^4.16.13", "dumi": "^1.0.17", "father-build": "^1.17.2", "gh-pages": "^3.0.0",