diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-09-03 18:19:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-03 18:19:30 +0200 |
commit | e324151520c62c9503e5e38da66827cd7815ea14 (patch) | |
tree | 51449e9ea202b758a4ac74210b97f6c9b65d26e7 /cli/graph_util.rs | |
parent | fc4025c878a7986576f693ed3ad297212f6a99de (diff) |
BREAKING(unstable): remove --compat mode (#15678)
This commit removes "compat" mode. We shipped support for "npm:" specifier
support in v1.25 and that is preferred way to interact with Node code that we
will iterate and improve upon.
Diffstat (limited to 'cli/graph_util.rs')
-rw-r--r-- | cli/graph_util.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/cli/graph_util.rs b/cli/graph_util.rs index 1f49c22a3..f73fd5559 100644 --- a/cli/graph_util.rs +++ b/cli/graph_util.rs @@ -441,20 +441,6 @@ impl GraphData { None } - // TODO(bartlomieju): after saving translated source - // it's never removed, potentially leading to excessive - // memory consumption - pub fn add_cjs_esm_translation( - &mut self, - specifier: &ModuleSpecifier, - source: String, - ) { - let prev = self - .cjs_esm_translations - .insert(specifier.to_owned(), source); - assert!(prev.is_none()); - } - pub fn get_cjs_esm_translation<'a>( &'a self, specifier: &ModuleSpecifier, |