Version
System:
OS: Linux 5.14 Rocky Linux 9.2 (Blue Onyx)
CPU: (2) x64 Intel(R) Xeon(R) Silver 4310 CPU @ 2.10GHz
Memory: 4.88 GB / 7.50 GB
Container: Yes
Shell: 5.1.8 - /bin/bash
Browsers:
Chrome: 132.0.6834.83
npmPackages:
@rsbuild/core: ^1.5.17 => 1.6.0
@rsbuild/plugin-sass: ^1.4.0 => 1.4.0
@rsbuild/plugin-vue2: ^1.0.4 => 1.0.4
Details
在 Linux 中使用下面命令打包:
rsbuild build --mode production --env-mode development
defineConfig 返回的 config.env 为 development。
export default defineConfig((config) => {
const isProd = config.env === 'production';
return {
};
});
在 macOS 正常。
Reproduce link
Reproduce link
Reproduce Steps
rsbuild build --mode production --env-mode development