当前位置:网站首页>解决The code generator has deoptimised the styling of xxxx.js as it exceeds the max of 500kb
解决The code generator has deoptimised the styling of xxxx.js as it exceeds the max of 500kb
2022-07-01 06:24:00 【木屋x】
解决The code generator has deoptimised the styling of xxxx.js as it exceeds the max of 500kb
1.需求背景
- 最近在vue项目引用了一个js文件,由于这个文件的大小超过了500kb,因此在打包的时候抛了一个错:
The code generator has deoptimised the styling of xxxx.js as it exceeds the max of 500kb。
解决方案
这个问题其实就是babel处理文件的大小被限制在了500kb,解决如下:
// 在项目根目录下查找 .babelrc 或 babel.config.js 文件,如果没有就创建一个(两者其一即可),配置如下: // .babelrc: { "compact": false } // babel.config.js: module.exports = { compact: false, }解决。
边栏推荐
- [unity shader amplify shader editor (ASE) Chapter 9]
- idea 好用插件汇总!!!
- [unity shader custom material panel part II]
- 微信公众号内嵌跳转微信小程序方案总结
- Promise
- [ManageEngine Zhuohao] helps Julia college, the world's top Conservatory of music, improve terminal security
- Three minutes to quickly understand the whole process of website development
- Tidb single machine simulation deployment production environment cluster (closed pit practice, personal test is effective)
- lxml模块(数据提取)
- 记磁盘扇区损坏导致的Mysql故障排查
猜你喜欢

Picture server project test
![[unity shader custom material panel part II]](/img/d1/8632ae680299a27b7431b2d6e03fd3.png)
[unity shader custom material panel part II]

端口扫描工具对企业有什么帮助?
![[postgraduate entrance examination advanced mathematics Wu Zhongxiang +880 version for personal use] advanced mathematics Chapter II Basic Stage mind map](/img/c0/299a406efea51f24b1701b66adc1e3.png)
[postgraduate entrance examination advanced mathematics Wu Zhongxiang +880 version for personal use] advanced mathematics Chapter II Basic Stage mind map

浅谈SIEM

Promise

C语言课设学生考勤系统(大作业)

async 与 await
![[unity shader stroke effect _ case sharing first]](/img/bd/5cd1bef24e6b6378854114c2c05bd9.png)
[unity shader stroke effect _ case sharing first]

【自动化运维】自动化运维平台有什么用
随机推荐
On siem
Functions of switch configuration software
[ManageEngine Zhuohao] the role of LAN monitoring
浅谈SIEM
Kubedm builds kubenetes cluster (Personal Learning version)
C language course is provided with employee information management system (large operation)
Projects and dependencies in ABP learning solutions
ABP 学习解决方案中的项目以及依赖关系
【网络安全工具】USB控制软件有什么用
ManageEngine Zhuohao helps you comply with ISO 20000 standard (IV)
C how to print out the original array
ForkJoin和Stream流测试
Promise
HDU - 1501 zipper (memory deep search)
三分钟带你快速了解网站开发的整个流程
C language course set up library information management system (big homework)
SystemVerilog learning-07-class inheritance and package use
[file system] how to run squashfs on UBI
Although pycharm is marked with red in the run-time search path, it does not affect the execution of the program
地宫取宝(记忆化深搜)