aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js')
-rw-r--r--src/bun.js/api/JSBundler.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/api/JSBundler.zig b/src/bun.js/api/JSBundler.zig
index 87fc29efc..d73dc80fe 100644
--- a/src/bun.js/api/JSBundler.zig
+++ b/src/bun.js/api/JSBundler.zig
@@ -756,7 +756,7 @@ pub const JSBundler = struct {
path: *const Fs.Path,
is_onLoad: bool,
) bool {
- const namespace_string = if (strings.eqlComptime(path.namespace, "file"))
+ const namespace_string = if (path.isFile())
ZigString.Empty
else
ZigString.fromUTF8(path.namespace);