Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2. #16325

Closed
1 task done
jinliming2 opened this issue Apr 26, 2019 · 5 comments

Comments

@jinliming2
Copy link
Contributor

@jinliming2 jinliming2 commented Apr 26, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

装包时报警告:

warning antd > create-react-class > fbjs > core-js@1.2.7: core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.

指示 antd 依赖的 create-react-class 依赖的 fbjs 依赖了过时停止维护的 core-js

image

@zombieJ
Copy link
Member

@zombieJ zombieJ commented Apr 26, 2019

这个应该没用了,我删掉它去。
cc @afc163

@jinliming2
Copy link
Contributor Author

@jinliming2 jinliming2 commented May 22, 2019

antd@3.18.2 还是有这个问题,只不过换了个包:

warning antd > rc-tree-select > rc-trigger > rc-animate > fbjs > core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.

image

@afc163
Copy link
Member

@afc163 afc163 commented May 22, 2019

@yoyo837
Copy link
Contributor

@yoyo837 yoyo837 commented Mar 20, 2020

如果项目使用core-js@3, 由于antd的rc-*依赖的还是core-js@2,所以会有两份打入bundle。多20多KB。

介意bundle的项目使用corejs: 2 + @babel/plugin-transform-runtime

      {
        modules: false,
        useBuiltIns: 'usage',
        corejs: 2
      }

@jinliming2
Copy link
Contributor Author

@jinliming2 jinliming2 commented Mar 20, 2020

(介意的不是 bundle size 而是 warning 🤣

@afc163 afc163 mentioned this issue Mar 28, 2020
26 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants