From 9c9425bc8cbafdf1c29a2e28e90fa7ae3ec1be01 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sat, 6 May 2023 13:18:38 -0700 Subject: Another .isFile() --- src/bundler/bundle_v2.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index 95595e4fb..951f93fcb 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -1259,7 +1259,7 @@ pub const BundleV2 = struct { // If it's a file namespace, we should run it through the parser like normal. // The file could be on disk. const source = &this.graph.input_files.items(.source)[load.source_index.get()]; - if (strings.eqlComptime(source.path.namespace, "file")) { + if (source.path.isFile()) { this.graph.pool.pool.schedule(ThreadPoolLib.Batch.from(&load.parse_task.task)); return; } -- cgit v1.2.3