From 950537e8ef6e54c409a7fcafa0b087e68988d9ef Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Sat, 25 Jan 2020 06:15:01 +1100 Subject: Break out runtime lib to main and worker (#3771) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- cli/compilers/ts.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/compilers/ts.rs') 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( ) -> Pin> { let req_msg = json!({ "type": msg::CompilerRequestType::RuntimeCompile as i32, + "target": "runtime", "rootName": root_name, "sources": sources, "options": options, -- cgit v1.2.3