diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-01-25 06:15:01 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2020-01-24 14:15:01 -0500 |
commit | 950537e8ef6e54c409a7fcafa0b087e68988d9ef (patch) | |
tree | 46162f11adc5a6e71c4c681ffe7949ad7bc98fb8 /cli/compilers/ts.rs | |
parent | 8bc639a23e141d350e35ea112a4a9be2ea536fe6 (diff) |
Break out runtime lib to main and worker (#3771)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/compilers/ts.rs')
-rw-r--r-- | cli/compilers/ts.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/compilers/ts.rs b/cli/compilers/ts.rs index 3adf92495..b95a811e7 100644 --- a/cli/compilers/ts.rs +++ b/cli/compilers/ts.rs @@ -165,6 +165,7 @@ fn req( let j = match (compiler_config.path, compiler_config.content) { (Some(config_path), Some(config_data)) => json!({ "type": request_type as i32, + "target": "main", "rootNames": root_names, "outFile": out_file, "bundle": bundle, @@ -173,6 +174,7 @@ fn req( }), _ => json!({ "type": request_type as i32, + "target": "main", "rootNames": root_names, "outFile": out_file, "bundle": bundle, @@ -617,6 +619,7 @@ pub fn runtime_compile_async<S: BuildHasher>( ) -> Pin<Box<CompilationResultFuture>> { let req_msg = json!({ "type": msg::CompilerRequestType::RuntimeCompile as i32, + "target": "runtime", "rootName": root_name, "sources": sources, "options": options, |