aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bundler.zig2
-rw-r--r--src/js_parser/js_parser.zig6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/bundler.zig b/src/bundler.zig
index 9b5371014..eec0f7488 100644
--- a/src/bundler.zig
+++ b/src/bundler.zig
@@ -2697,7 +2697,7 @@ pub const Transformer = struct {
.transform_imports = false,
.runtime_imports = ast.runtime_imports,
},
- u1,
+ ?*c_void,
null,
);
},
diff --git a/src/js_parser/js_parser.zig b/src/js_parser/js_parser.zig
index a0ce4252f..1984c0429 100644
--- a/src/js_parser/js_parser.zig
+++ b/src/js_parser/js_parser.zig
@@ -9886,7 +9886,7 @@ pub fn NewParser(
const JSXTag = struct {
pub const TagType = enum { fragment, tag };
pub const Data = union(TagType) {
- fragment: u1,
+ fragment: u8,
tag: Expr,
pub fn asExpr(d: *const Data) ?ExprNodeIndex {
@@ -14506,12 +14506,12 @@ pub fn NewParser(
.require_resolve_transposer = undefined,
.source = source,
- .needs_jsx_import = if (only_scan_imports_and_do_not_visit) false else NeedsJSXType{},
+ .needs_jsx_import = if (comptime only_scan_imports_and_do_not_visit) false else NeedsJSXType{},
.lexer = lexer,
.hmr_exports_list = @TypeOf(this.hmr_exports_list).init(allocator),
};
- if (!only_scan_imports_and_do_not_visit) {
+ if (comptime !only_scan_imports_and_do_not_visit) {
this.import_records = @TypeOf(this.import_records).init(allocator);
this.named_imports = NamedImportsType.init(allocator);
}