diff options
author | 2023-05-06 12:52:55 -0700 | |
---|---|---|
committer | 2023-05-06 12:52:55 -0700 | |
commit | 1da75791dae29ec10209c76e71b4f604471dabc8 (patch) | |
tree | 6032c8483c29122b2653167b455564238c566b6e /src/bun.js | |
parent | 3bc02e48ca3e098764350ccd9c4bb9ee61e89368 (diff) | |
download | bun-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.zig | 2 |
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); |