diff options
Diffstat (limited to 'src/runtime.zig')
-rw-r--r-- | src/runtime.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime.zig b/src/runtime.zig index 99d8ca102..f09e16378 100644 --- a/src/runtime.zig +++ b/src/runtime.zig @@ -324,6 +324,8 @@ pub const Runtime = struct { /// So we have a list of packages which we know are safe to do this with. unwrap_commonjs_packages: []const string = &.{}, + commonjs_at_runtime: bool = false, + pub fn shouldUnwrapRequire(this: *const Features, package_name: string) bool { return package_name.len > 0 and strings.indexAny(this.unwrap_commonjs_packages, package_name) != null; } |