From ca461f9e83b2c692442bb7e20c2f9e3670d2ef6a Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:19:21 -0700 Subject: fix loading env from `.env.production` and friends (#4630) * reload conditional vars * test * change `get` and `put` methods * dont clone empty env variables --- src/bun.js/api/bun.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bun.js/api') diff --git a/src/bun.js/api/bun.zig b/src/bun.js/api/bun.zig index 36e52821f..966c82d38 100644 --- a/src/bun.js/api/bun.zig +++ b/src/bun.js/api/bun.zig @@ -4431,7 +4431,7 @@ pub const EnvironmentVariables = struct { var vm = globalObject.bunVM(); var sliced = name.toSlice(vm.allocator); defer sliced.deinit(); - const value = vm.bundler.env.map.map.get(sliced.slice()) orelse return null; + const value = vm.bundler.env.map.get(sliced.slice()) orelse return null; return ZigString.initUTF8(value); } }; -- cgit v1.2.3