summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-05-21 01:10:43 +0100
committerGitHub <noreply@github.com>2024-05-21 00:10:43 +0000
commitc703ddd965655fc4482a1fd959baee61bb26097c (patch)
treeced14e8662fd1fa18ae07f8c7361866e6fb37568
parent529356cc120a3b2f7b13131e5a5117b093e11158 (diff)
chore: force import assertion support (#23855)
https://github.com/denoland/deno/pull/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.
-rw-r--r--cli/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 0abbc2a37..44e9d31fd 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -405,7 +405,10 @@ fn resolve_flags_and_init(
// TODO(petamoriken): Need to check TypeScript `assert` keywords in deno_ast
vec!["--no-harmony-import-assertions".to_string()]
} else {
- vec![]
+ // If we're still in v1.X version we want to support import assertions.
+ // V8 12.6 unshipped the support by default, so force it by passing a
+ // flag.
+ vec!["--harmony-import-assertions".to_string()]
}
}
};