aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 06:47:07 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-06-22 06:56:47 -0700
commit772350a3098b4d1350273ebdde5eb4d3c911ca58 (patch)
tree14230e4beaab7cb736c4cde47dffa669e5f3070a
parentcf0ee829269790aac97035151d81375297e6daab (diff)
downloadbun-772350a3098b4d1350273ebdde5eb4d3c911ca58.tar.gz
bun-772350a3098b4d1350273ebdde5eb4d3c911ca58.tar.zst
bun-772350a3098b4d1350273ebdde5eb4d3c911ca58.zip
Disable modules in the linker
-rw-r--r--src/linker.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/linker.zig b/src/linker.zig
index 6111f3c1c..8be0b14b2 100644
--- a/src/linker.zig
+++ b/src/linker.zig
@@ -268,6 +268,12 @@ pub const Linker = struct {
continue;
}
+ if (JSC.DisabledModule.has(import_record.path.text)) {
+ import_record.path.is_disabled = true;
+ import_record.wrap_with_to_module = true;
+ continue;
+ }
+
if (strings.eqlComptime(import_record.path.text, "bun")) {
import_record.tag = .bun;
continue;