We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e810d2 commit b08d3b2Copy full SHA for b08d3b2
1 file changed
src/linker.zig
@@ -262,13 +262,13 @@ pub const Linker = struct {
262
if (import_record.path.text.len > 5 and strings.eqlComptime(import_record.path.text[0.."node:".len], "node:")) {
263
const is_fs = strings.eqlComptime(import_record.path.text[5..], "fs");
264
const is_path = strings.eqlComptime(import_record.path.text[5..], "path");
265
- if (is_path) {
+ if (is_fs) {
266
import_record.path.text = "node:fs";
267
externals.append(record_index) catch unreachable;
268
continue;
269
}
270
271
- if (is_fs) {
+ if (is_path) {
272
import_record.path.text = "node:path";
273
274
0 commit comments