diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-11-01 12:27:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-01 12:27:00 -0400 |
| commit | 826e42a5b5880c974ae019a7a21aade6a718062c (patch) | |
| tree | a46502ecc3c73e4f7fc3a4517d83c7b2f3d0c0d3 /cli/npm/managed/resolvers/common.rs | |
| parent | 4774eab64d5176e997b6431f03f075782321b3d9 (diff) | |
fix: improved support for cjs and cts modules (#26558)
* cts support
* better cjs/cts type checking
* deno compile cjs/cts support
* More efficient detect cjs (going towards stabilization)
* Determination of whether .js, .ts, .jsx, or .tsx is cjs or esm is only
done after loading
* Support `import x = require(...);`
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/npm/managed/resolvers/common.rs')
| -rw-r--r-- | cli/npm/managed/resolvers/common.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cli/npm/managed/resolvers/common.rs b/cli/npm/managed/resolvers/common.rs index 867bb4168..590f8fb25 100644 --- a/cli/npm/managed/resolvers/common.rs +++ b/cli/npm/managed/resolvers/common.rs @@ -17,7 +17,6 @@ use deno_core::anyhow::Context; use deno_core::error::AnyError; use deno_core::futures; use deno_core::futures::StreamExt; -use deno_core::url::Url; use deno_npm::NpmPackageCacheFolderId; use deno_npm::NpmPackageId; use deno_npm::NpmResolutionPackage; @@ -30,9 +29,6 @@ use crate::npm::managed::cache::TarballCache; /// Part of the resolution that interacts with the file system. #[async_trait(?Send)] pub trait NpmPackageFsResolver: Send + Sync { - /// Specifier for the root directory. - fn root_dir_url(&self) -> &Url; - /// The local node_modules folder if it is applicable to the implementation. fn node_modules_path(&self) -> Option<&Path>; |
