Skip to content

Commit c8c06cc

Browse files
committedDec 13, 2023
Bypass webpack process.env inlining
1 parent 3aeb98a commit c8c06cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎Reflect.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Reflect.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Reflect.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ namespace Reflect {
675675

676676
// Load global or shim versions of Map, Set, and WeakMap
677677
const functionPrototype = Object.getPrototypeOf(Function);
678-
const usePolyfill = typeof process === "object" && process.env && process.env["REFLECT_METADATA_USE_MAP_POLYFILL"] === "true";
678+
const usePolyfill = typeof process === "object" && process["env" + ""] && process["env" + ""]["REFLECT_METADATA_USE_MAP_POLYFILL"] === "true";
679679
const _Map: typeof Map = !usePolyfill && typeof Map === "function" && typeof Map.prototype.entries === "function" ? Map : CreateMapPolyfill();
680680
const _Set: typeof Set = !usePolyfill && typeof Set === "function" && typeof Set.prototype.entries === "function" ? Set : CreateSetPolyfill();
681681
const _WeakMap: typeof WeakMap = !usePolyfill && typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();

0 commit comments

Comments
 (0)
Please sign in to comment.