diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-12-01 15:12:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-01 20:12:10 +0000 |
| commit | a1d823e27d1b605b5658fddc1c9273667f0e9e84 (patch) | |
| tree | 213f35fb40b5c70832b1d9473947b3de48d4ec9e /Cargo.lock | |
| parent | d8e8497eb3049f58632e4d7507090ef9915b3af6 (diff) | |
feat(compile): support discovering modules for more dynamic arguments (#21381)
This PR causes Deno to include more files in the graph based on how a
template literal looks that's provided to a dynamic import:
```ts
const file = await import(`./dir/${expr}`);
```
In this case, it will search the `dir` directory and descendant
directories for any .js/jsx/etc modules and include them in the graph.
To opt out of this behaviour, move the template literal to a separate
line:
```ts
const specifier = `./dir/${expr}`
const file = await import(specifier);
```
Diffstat (limited to 'Cargo.lock')
| -rw-r--r-- | Cargo.lock | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/Cargo.lock b/Cargo.lock index 1dffcb877..269bf912d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1139,9 +1139,9 @@ dependencies = [ [[package]] name = "deno_doc" -version = "0.73.3" +version = "0.73.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "729bacea0b5a1b2406f70c105ba82354e0f4bd99c51ede4fd29b15ce750dcdd4" +checksum = "76d4d2960ce5c7af64e57ec4e7fd99023bd1ab664cedc4ec267db1d294b6002a" dependencies = [ "anyhow", "cfg-if", @@ -1162,9 +1162,9 @@ dependencies = [ [[package]] name = "deno_emit" -version = "0.31.4" +version = "0.31.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8910a6da498d0eb2a28d9ea613c47291a86377a85b3771dd90d624004814aeb" +checksum = "5b98917905e9be9740722f89c3b2d3a963beaed8a05dce58e642947d0f6aa17d" dependencies = [ "anyhow", "base64 0.13.1", @@ -1230,9 +1230,9 @@ dependencies = [ [[package]] name = "deno_graph" -version = "0.61.1" +version = "0.61.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "076c0b611c10901456b78c837408b9c40fe0c3602e767307d986f46f0cc56b51" +checksum = "332e6a1930b3266dc848edeaf1426bbbd3ddca25c5e107e70823efb1b3ce68be" dependencies = [ "anyhow", "async-trait", @@ -1242,6 +1242,7 @@ dependencies = [ "futures", "import_map", "indexmap 2.0.2", + "log", "monch", "once_cell", "parking_lot 0.12.1", @@ -2203,9 +2204,9 @@ dependencies = [ [[package]] name = "eszip" -version = "0.55.4" +version = "0.55.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0535cf1ea8c46379c39d791dc87e7104e90b3730829ee6d8888285eab22fa69" +checksum = "455c055f28756fc7ba0d64506e6167b91878f3a39854271d7d63b577deb8b45d" dependencies = [ "anyhow", "base64 0.21.4", @@ -2854,9 +2855,9 @@ checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed" [[package]] name = "import_map" -version = "0.17.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e5bf51a0adfdc08afcb9e5a1c8f8c804227ec50d493c65e57e6d117d594bd1b" +checksum = "0ecd467768fe83c2860e70e5de5297a7366a230ff53e1da2158bdac2384cd39d" dependencies = [ "indexmap 1.9.3", "log", |
