mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 12:29:07 +00:00
Wire up macro-injected imports and move some structs above the gigantic parser type to reduce bun compile time a little
This commit is contained in:
@@ -1551,6 +1551,7 @@ pub fn castObj(obj: js.JSObjectRef, comptime Type: type) *Type {
|
||||
}
|
||||
const JSNode = @import("../../js_ast.zig").Macro.JSNode;
|
||||
const LazyPropertiesObject = @import("../../js_ast.zig").Macro.LazyPropertiesObject;
|
||||
const ModuleNamespace = @import("../../js_ast.zig").Macro.ModuleNamespace;
|
||||
pub const JSPrivateDataPtr = TaggedPointerUnion(.{
|
||||
ResolveError,
|
||||
BuildError,
|
||||
@@ -1562,6 +1563,7 @@ pub const JSPrivateDataPtr = TaggedPointerUnion(.{
|
||||
Router,
|
||||
JSNode,
|
||||
LazyPropertiesObject,
|
||||
ModuleNamespace,
|
||||
});
|
||||
|
||||
pub inline fn GetJSPrivateData(comptime Type: type, ref: js.JSObjectRef) ?*Type {
|
||||
|
||||
Reference in New Issue
Block a user