summaryrefslogtreecommitdiff
path: root/cli/module_graph.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-01-06 02:38:23 +0100
committerGitHub <noreply@github.com>2021-01-06 02:38:23 +0100
commitbb884182218b5c12c7354c93860d69f65f59752a (patch)
tree21622b6c51841442ef5b2ce5c31453d715d73317 /cli/module_graph.rs
parent4c4791b5899afe585738ac0a15ba5c21d36952cc (diff)
refactor(cli): remove 'js' module, simplify compiler snapshot (#9020)
This commit removes "js" module from "cli". It contained stuff related to TypeScript compiler (snapshot, declaration files) and thus it was moved to "tsc" module.
Diffstat (limited to 'cli/module_graph.rs')
-rw-r--r--cli/module_graph.rs39
1 files changed, 16 insertions, 23 deletions
diff --git a/cli/module_graph.rs b/cli/module_graph.rs
index e86732b24..686c1bd0e 100644
--- a/cli/module_graph.rs
+++ b/cli/module_graph.rs
@@ -13,7 +13,6 @@ use crate::info::ModuleGraphInfo;
use crate::info::ModuleInfo;
use crate::info::ModuleInfoMap;
use crate::info::ModuleInfoMapItem;
-use crate::js;
use crate::lockfile::Lockfile;
use crate::media_type::MediaType;
use crate::specifier_handler::CachedModule;
@@ -855,17 +854,14 @@ impl Graph {
vec![config.as_bytes(), version::deno().as_bytes().to_owned()];
let graph = Arc::new(Mutex::new(self));
- let response = tsc::exec(
- js::compiler_isolate_init(),
- tsc::Request {
- config: config.clone(),
- debug: options.debug,
- graph: graph.clone(),
- hash_data,
- maybe_tsbuildinfo,
- root_names,
- },
- )?;
+ let response = tsc::exec(tsc::Request {
+ config: config.clone(),
+ debug: options.debug,
+ graph: graph.clone(),
+ hash_data,
+ maybe_tsbuildinfo,
+ root_names,
+ })?;
let mut graph = graph.lock().unwrap();
graph.maybe_tsbuildinfo = response.maybe_tsbuildinfo;
@@ -983,17 +979,14 @@ impl Graph {
let hash_data =
vec![config.as_bytes(), version::deno().as_bytes().to_owned()];
let graph = Arc::new(Mutex::new(self));
- let response = tsc::exec(
- js::compiler_isolate_init(),
- tsc::Request {
- config: config.clone(),
- debug: options.debug,
- graph: graph.clone(),
- hash_data,
- maybe_tsbuildinfo: None,
- root_names,
- },
- )?;
+ let response = tsc::exec(tsc::Request {
+ config: config.clone(),
+ debug: options.debug,
+ graph: graph.clone(),
+ hash_data,
+ maybe_tsbuildinfo: None,
+ root_names,
+ })?;
let graph = graph.lock().unwrap();
match options.bundle_type {