feat: load sourcemaps at runtime when using a bun build --target=bun bundle (#10998)

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
dave caruso
2024-05-21 14:41:53 -07:00
committed by GitHub
parent c03b35ecfc
commit e98c235e30
23 changed files with 1110 additions and 164 deletions

View File

@@ -312,6 +312,11 @@ pub inline fn indexOf(self: string, str: string) ?usize {
return @as(usize, @intCast(i));
}
pub fn indexOfT(comptime T: type, haystack: []const T, needle: []const T) ?usize {
if (T == u8) return indexOf(haystack, needle);
return std.mem.indexOf(T, haystack, needle);
}
pub fn split(self: string, delimiter: string) SplitIterator {
return SplitIterator{
.buffer = self,