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

fix: package.json添加browserslist字段,转义打包产物中E6语法 #2203

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from

Conversation

hccluck
Copy link

@hccluck hccluck commented Sep 21, 2023

package.json添加browserslist字段,转义打包产物中E6语法,使打包产物index.umd.min.js语法兼容IE11浏览器

@hccluck
Copy link
Author

hccluck commented Sep 21, 2023

3.6.11后的打包产物都包含有箭头函数、let、const等ES6语法,这些语法在IE浏览器里不被支持,原因是3.6.11移除了package.json里的browserslist字段

@xuliangzhan
Copy link
Collaborator

该问题已经是改成配置文件.browserslistrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants