diff options
author | 2021-05-13 17:44:50 -0700 | |
---|---|---|
committer | 2021-05-13 17:44:50 -0700 | |
commit | ca4120afec54fc20295a4a7d3ce6f8c29eccd84c (patch) | |
tree | 6619890c616bde65b3798b28fb99018b1eac71e3 /src/bundler.zig | |
parent | 2eb09c1fec3a11067066602e2d6613e817a06630 (diff) | |
download | bun-ca4120afec54fc20295a4a7d3ce6f8c29eccd84c.tar.gz bun-ca4120afec54fc20295a4a7d3ce6f8c29eccd84c.tar.zst bun-ca4120afec54fc20295a4a7d3ce6f8c29eccd84c.zip |
bug fixes galore
Former-commit-id: 72439452918caa05a32d4e3607910901fa2f4f85
Diffstat (limited to 'src/bundler.zig')
-rw-r--r-- | src/bundler.zig | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/bundler.zig b/src/bundler.zig index cfbc147ca..6ea4d41a8 100644 --- a/src/bundler.zig +++ b/src/bundler.zig @@ -110,7 +110,7 @@ pub const Bundler = struct { ) !void { var allocator = bundler.allocator; const relative_path = try std.fs.path.relative(bundler.allocator, bundler.fs.top_level_dir, result.source.path.text); - var out_parts = [_]string{ bundler.options.output_dir, relative_path }; + var out_parts = [_]string{ bundler.fs.top_level_dir, relative_path }; const out_path = try std.fs.path.join(bundler.allocator, &out_parts); const ast = result.ast; @@ -175,7 +175,10 @@ pub const Bundler = struct { .loader = loader, }; }, - else => Global.panic("Unsupported loader {s}", .{loader}), + .css => { + return null; + }, + else => Global.panic("Unsupported loader {s} for path: {s}", .{ loader, source.path.text }), } return null; @@ -419,7 +422,7 @@ pub const Transformer = struct { ast = res.ast; }, else => { - Global.panic("Unsupported loader: {s}", .{loader}); + Global.panic("Unsupported loader: {s} for path: {s}", .{ loader, source.path.text }); }, } |