WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version.

在使用webpack4中,使用@babel/polyfill中的"useBuiltIns":“usage” 配置项时,打包出现以下警告⚠️

往往是没有在配置中声明core-js版本的问题,具体解决方法如下:
在.babelrc文件配置项里声明版本:

声明之后,再次执行打包,就没有问题啦~完美解决 ?

发布了54 篇原创文章 · 获赞 22 · 访问量 7243

猜你喜欢

转载自blog.csdn.net/Riona_cheng/article/details/100555780