You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux.

You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) to ensure you have the correct code for your production build.

 

解决方法:非production环境不启用代码压缩即可。

例如vite配置:

build: {
// 压缩
minify: process.env.VITE_NODE_ENV === 'production' ? 'esbuild' : false,
},

此时需要在 env.development 和 env.production中配置 VITE_NODE_ENV

如:env.development中

VITE_NODE_ENV = 'development'
posted @   SKILL·NULL  阅读(1768)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
历史上的今天:
2016-04-28 CSS3实现文字抹开特效
点击右上角即可分享
微信分享提示