summaryrefslogtreecommitdiff
path: root/cli/tests/unit_node/_fs/_fs_readdir_test.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-12-01 15:12:10 -0500
committerGitHub <noreply@github.com>2023-12-01 20:12:10 +0000
commita1d823e27d1b605b5658fddc1c9273667f0e9e84 (patch)
tree213f35fb40b5c70832b1d9473947b3de48d4ec9e /cli/tests/unit_node/_fs/_fs_readdir_test.ts
parentd8e8497eb3049f58632e4d7507090ef9915b3af6 (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 'cli/tests/unit_node/_fs/_fs_readdir_test.ts')
0 files changed, 0 insertions, 0 deletions