当前位置: 首页 > 工具软件 > Note IT > 使用案例 >

[BABEL] Note: The code generator has deoptimised the styling of ... as it exceeds the max of 500KB.

桓嘉谊
2023-12-01

Ant Design Pro执行npm run fetch:blocks 下载所有的区块并npm start后,报:

[BABEL] Note: The code generator has deoptimised the styling of ... as it exceeds the max of 500KB.

 

【已解决】:

在项目的根目录下新建.babelrc文件,写入以下内容:

{
    "compact": false,
    "presets": ["env", "react", "stage-0"],
    "plugins": ["transform-runtime"]
}

 类似资料: