问题描述:

前端项目访问,js访问报404

npm打包丢包core-js,丢失es6.regexp.split.js,丢失es6.regexp.replace问题解决

 

 

问题解决:

1.重装@babel/polyfill

命令:

npm uninstall @babel/polyfill --save && npm install @babel/polyfill --save

 

 

2.提交的时候,把es6.regexp.replace 等 core-js下的所有js文件提交,一起打包发布

 

即可解决

 

查看原文