Skip to content

Commit e573368

Browse files
committed
chore: force import assertion support (#23855)
#23838 might accidentally disable import assertions support because of V8 12.6 unshipping it, but we want import assertions to be supported until Deno 2.
1 parent c6f79ae commit e573368

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/main.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,10 @@ fn resolve_flags_and_init(
405405
// TODO(petamoriken): Need to check TypeScript `assert` keywords in deno_ast
406406
vec!["--no-harmony-import-assertions".to_string()]
407407
} else {
408-
vec![]
408+
// If we're still in v1.X version we want to support import assertions.
409+
// V8 12.6 unshipped the support by default, so force it by passing a
410+
// flag.
411+
vec!["--harmony-import-assertions".to_string()]
409412
}
410413
}
411414
};

0 commit comments

Comments
 (0)