aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-06 12:52:55 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-06 12:52:55 -0700
commit1da75791dae29ec10209c76e71b4f604471dabc8 (patch)
tree6032c8483c29122b2653167b455564238c566b6e /src/bun.js
parent3bc02e48ca3e098764350ccd9c4bb9ee61e89368 (diff)
downloadbun-1da75791dae29ec10209c76e71b4f604471dabc8.tar.gz
bun-1da75791dae29ec10209c76e71b4f604471dabc8.tar.zst
bun-1da75791dae29ec10209c76e71b4f604471dabc8.zip
Use `isFile()` helper
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);