diff options
author | 2022-02-24 19:09:55 -0800 | |
---|---|---|
committer | 2022-02-24 19:09:55 -0800 | |
commit | d1eba784b9d902ac6043c1b76e64382d43fbc261 (patch) | |
tree | b711a3f5624817496b0071721634dad8bdc50e4a /src/linker.zig | |
parent | ead77e074d0cfb3d170a243140cce564a4f287a5 (diff) | |
download | bun-d1eba784b9d902ac6043c1b76e64382d43fbc261.tar.gz bun-d1eba784b9d902ac6043c1b76e64382d43fbc261.tar.zst bun-d1eba784b9d902ac6043c1b76e64382d43fbc261.zip |
Add WASM modules but disable it for now
Diffstat (limited to '')
-rw-r--r-- | src/linker.zig | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/linker.zig b/src/linker.zig index 8ac15ddd7..b82fa03ec 100644 --- a/src/linker.zig +++ b/src/linker.zig @@ -259,6 +259,12 @@ pub const Linker = struct { continue; } + // if (strings.eqlComptime(import_record.path.text, "process") or strings.eqlComptime(import_record.path.text, "node:process")) { + // import_record.path.text = "node:process"; + // externals.append(record_index) catch unreachable; + // continue; + // } + // TODO: this is technical debt if (linker.options.rewrite_jest_for_tests) { if (strings.eqlComptime( @@ -744,7 +750,7 @@ pub const Linker = struct { import_record.path = try linker.generateImportPath( source_dir, if (path.is_symlink and import_path_format == .absolute_url and linker.options.platform.isNotBun()) path.pretty else path.text, - loader == .file, + loader == .file or loader == .wasm, path.namespace, origin, import_path_format, @@ -758,7 +764,7 @@ pub const Linker = struct { // This saves us a less reliable string check import_record.print_mode = .css; }, - .file => { + .wasm, .file => { import_record.print_mode = .import_path; }, else => {}, |