summaryrefslogtreecommitdiff
path: root/cli/tsc
diff options
context:
space:
mode:
authorBartek Iwańczuk <biwanczuk@gmail.com>2023-06-14 00:36:16 +0200
committerGitHub <noreply@github.com>2023-06-13 22:36:16 +0000
commit60bf79c18410fd332b6b9b7c222e6d3d62bfe3f8 (patch)
tree070934eb82d906ee341d1ad4d1390f0b75860529 /cli/tsc
parent82dd90f98d6817caadcb9b6bd81aba80b2ee848d (diff)
Revert "refactor(core): cleanup feature flags for js source inclusion… (#19490)
… (#19463)" This reverts commit ceb03cfb037cf7024a5048b17b508ddda59cfa05. This is being reverted because it causes 3.5Mb increase in the binary size, due to runtime JS code being included in the binary, even though it's already snapshotted. CC @nayeemrmn
Diffstat (limited to 'cli/tsc')
-rw-r--r--cli/tsc/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tsc/mod.rs b/cli/tsc/mod.rs
index edc64e8ef..a4d6640f7 100644
--- a/cli/tsc/mod.rs
+++ b/cli/tsc/mod.rs
@@ -122,7 +122,7 @@ fn get_asset_texts_from_new_runtime() -> Result<Vec<AssetText>, AnyError> {
// the assets are stored within the typescript isolate, so take them out of there
let mut runtime = JsRuntime::new(RuntimeOptions {
startup_snapshot: Some(compiler_snapshot()),
- extensions: vec![deno_cli_tsc::init()],
+ extensions: vec![deno_cli_tsc::init_ops()],
..Default::default()
});
let global = runtime
@@ -787,7 +787,7 @@ pub fn exec(request: Request) -> Result<Response, AnyError> {
let mut runtime = JsRuntime::new(RuntimeOptions {
startup_snapshot: Some(compiler_snapshot()),
- extensions: vec![deno_cli_tsc::init(
+ extensions: vec![deno_cli_tsc::init_ops(
request,
root_map,
remapped_specifiers,