aboutsummaryrefslogtreecommitdiff
path: root/src/linker.zig
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-05-11 17:42:54 -0400
committerGravatar GitHub <noreply@github.com> 2023-05-11 14:42:54 -0700
commit6a163cf933542506354dc836bd92693bcae5939b (patch)
tree2eaeee9cddeb930792b96de6ed040a9877ebc318 /src/linker.zig
parent02cad591f8c56f801fb9ccc480bf9547484144c2 (diff)
downloadbun-6a163cf933542506354dc836bd92693bcae5939b.tar.gz
bun-6a163cf933542506354dc836bd92693bcae5939b.tar.zst
bun-6a163cf933542506354dc836bd92693bcae5939b.zip
bundler tests and improve `Bun.build` return type (#2833)
* importstar_ts * tests * run acorn test suite * bench tweaks * test * bun.build tests very incomplete * remove dataurl and base64 loaders from tests since they dont work yet * tests * stuff * stuff * add errors and array of blobs * work so far * docs * requested changes * fix overwrite docs * remove this file
Diffstat (limited to 'src/linker.zig')
-rw-r--r--src/linker.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linker.zig b/src/linker.zig
index 8ca36dada..6e99dbb5b 100644
--- a/src/linker.zig
+++ b/src/linker.zig
@@ -41,7 +41,7 @@ const Runtime = @import("./runtime.zig").Runtime;
const URL = @import("url.zig").URL;
const JSC = @import("root").bun.JSC;
const PluginRunner = bun.bundler.PluginRunner;
-pub const CSSResolveError = error{ResolveError};
+pub const CSSResolveError = error{ResolveMessage};
pub const OnImportCallback = *const fn (resolve_result: *const Resolver.Result, import_record: *ImportRecord, origin: URL) void;
@@ -795,7 +795,7 @@ pub const Linker = struct {
else => {},
}
- if (had_resolve_errors) return error.ResolveError;
+ if (had_resolve_errors) return error.ResolveMessage;
result.ast.externals = try externals.toOwnedSlice();
// if (result.ast.needs_runtime and (result.ast.runtime_import_record_id == null or import_records.items.len == 0)) {