diff options
author | 2023-05-17 20:29:35 -0700 | |
---|---|---|
committer | 2023-05-17 20:29:35 -0700 | |
commit | aacbef3cf99206aa15e71491c55aba7156fe2caf (patch) | |
tree | 95f3bb809e6f02fec7006de53405f07c4677b6f1 /src | |
parent | 4f7198f780fa5e345c6eeed3f98f30b03f2a6d32 (diff) | |
download | bun-aacbef3cf99206aa15e71491c55aba7156fe2caf.tar.gz bun-aacbef3cf99206aa15e71491c55aba7156fe2caf.tar.zst bun-aacbef3cf99206aa15e71491c55aba7156fe2caf.zip |
Mention setting `target` to `"node"` or `"bun"` when a ResolveMessage occurs for a Node.js builtin
Diffstat (limited to 'src')
-rw-r--r-- | src/bundler/bundle_v2.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index dbf2025ba..dca0d6982 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -497,7 +497,7 @@ pub const BundleV2 = struct { source, import_record.range, this.graph.allocator, - "Could not resolve Node.js builtin: \"{s}\".", + "Could not resolve Node.js builtin: \"{s}\". To use Node.js builtins, set target to 'node' or 'bun'", .{path_to_use}, import_record.kind, ) catch unreachable; @@ -1927,7 +1927,7 @@ pub const BundleV2 = struct { source, import_record.range, this.graph.allocator, - "Could not resolve Node.js builtin: \"{s}\".", + "Could not resolve Node.js builtin: \"{s}\". To use Node.js builtins, set target to 'node' or 'bun'", .{import_record.path.text}, import_record.kind, ) catch @panic("unexpected log error"); |