在尝试使用 Mobx管理数据状态的时候构建版本出现警告!

使用npm 安装了 Mobx 来管理游戏中用到的数据但是在构建的时候出现以下警告 但是 不知道 怎么设置process.env.NODE_ENV 变量 官方的大大能给点解答么?

构建平台:PC Web
使用语言:TypeScript

project.js:1 [mobx] you are running a minified build, but ‘process.env.NODE_ENV’ was not set to ‘production’ in your bundler. This results in an unnecessarily large and slow bundle

3赞