diff options
Diffstat (limited to 'src/bun_js.zig')
-rw-r--r-- | src/bun_js.zig | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/bun_js.zig b/src/bun_js.zig index 6bbf093ae..82a5a8612 100644 --- a/src/bun_js.zig +++ b/src/bun_js.zig @@ -25,7 +25,6 @@ const resolve_path = @import("./resolver/resolve_path.zig"); const configureTransformOptionsForBun = @import("./bun.js/config.zig").configureTransformOptionsForBun; const Command = @import("cli.zig").Command; const bundler = bun.bundler; -const NodeModuleBundle = @import("node_module_bundle.zig").NodeModuleBundle; const DotEnv = @import("env_loader.zig"); const which = @import("which.zig").which; const JSC = @import("root").bun.JSC; @@ -60,7 +59,11 @@ pub const Run = struct { } run = .{ - .vm = try VirtualMachine.initWithModuleGraph(arena.allocator(), ctx.log, graph_ptr), + .vm = try VirtualMachine.initWithModuleGraph(.{ + .allocator = arena.allocator(), + .log = ctx.log, + .graph = graph_ptr, + }), .arena = arena, .ctx = ctx, .entry_path = entry_path, @@ -144,13 +147,13 @@ pub const Run = struct { run = .{ .vm = try VirtualMachine.init( - arena.allocator(), - ctx.args, - null, - ctx.log, - null, - ctx.debug.hot_reload != .none, - ctx.runtime_options.smol, + .{ + .allocator = arena.allocator(), + .log = ctx.log, + .args = ctx.args, + .store_fd = ctx.debug.hot_reload != .none, + .smol = ctx.runtime_options.smol, + }, ), .arena = arena, .ctx = ctx, |