Closed guoyunhe closed 2 months ago
Size Change: 0 B
Total Size: 352 kB
Path | Size | Loading time (3g) | Running time (snapdragon) | Total time |
---|---|---|---|---|
./lib/bundle/antd-mobile.es.js |
102 KB (-34.83 KB 🔽) | 2.1 s (-25.46% 🔽) | 275 ms (+58.95% 🔺) | 2.4 s |
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6611.surge.sh
使用Popover气泡组件,报错了: react-dom.development.js:86 Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here react 相关版本: "react": "^18.2.0", "react-dom": "^18.2.0", "react-i18next": "^14.1.2", "react-router-dom": "^6.21.0",
使用Popover气泡组件,报错了: react-dom.development.js:86 Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here react 相关版本: "react": "^18.2.0", "react-dom": "^18.2.0", "react-i18next": "^14.1.2", "react-router-dom": "^6.21.0",
在 https://bundlephobia.com/package/antd-mobile 上,bundle 分析会提示 react-dom 没有找到
理论上任何会被 bundle 的依赖都应该在 dependencies 或者 peerDependencies 里。参考 antd 的 peerDependencies 就是有 react-dom 的,所以我在 antd-mobile 里也加上了。这样更加严谨一些,也能让 bundlephobia.com 之类的工具分析得更准确一些。