aboutsummaryrefslogtreecommitdiff
path: root/src/bundler.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bundler.zig')
-rw-r--r--src/bundler.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bundler.zig b/src/bundler.zig
index 5791201d3..437dd3c9d 100644
--- a/src/bundler.zig
+++ b/src/bundler.zig
@@ -2976,7 +2976,7 @@ pub const Bundler = struct {
},
else => {
var abs_path = path.text;
- const file = try std.fs.openFileAbsolute(abs_path, .{ .read = true });
+ const file = try std.fs.openFileAbsolute(abs_path, .{ .mode = .read_only });
var stat = try file.stat();
return ServeResult{
.file = options.OutputFile.initFile(file, abs_path, stat.size),
@@ -3360,7 +3360,7 @@ pub const Transformer = struct {
var _log = logger.Log.init(allocator);
const absolutePath = resolve_path.joinAbs(transformer.cwd, .auto, entry_point);
- const file = try std.fs.openFileAbsolute(absolutePath, std.fs.File.OpenFlags{ .read = true });
+ const file = try std.fs.openFileAbsolute(absolutePath, std.fs.File.OpenFlags{ .mode = .read_only });
defer {
if (care_about_closing_files) {
file.close();