在使用webpack4中,使用@babel/polyfill中的"useBuiltIns":“usage” 配置项时,打包出现以下警告⚠️
往往是没有在配置中声明core-js版本的问题,具体解决方法如下:
在.babelrc文件配置项里声明版本:
声明之后,再次执行打包,就没有问题啦~完美解决 ?
WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version.
猜你喜欢
转载自blog.csdn.net/Riona_cheng/article/details/100555780
今日推荐
周排行