mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
a1d823e27d
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); ```
22 lines
520 B
JSON
22 lines
520 B
JSON
{
|
|
"exports": {
|
|
".": "./mod.ts"
|
|
},
|
|
"moduleGraph1": {
|
|
"/mod.ts": {
|
|
"dependencies": [{
|
|
"type": "static",
|
|
"kind": "import",
|
|
"range": [[0, 0], [0, 59]],
|
|
"specifier": "jsr:@denotest/module_graph@1/other",
|
|
"specifierRange": [[0, 22], [0, 58]]
|
|
}, {
|
|
"type": "static",
|
|
"kind": "import",
|
|
"range": [[1, 0], [1, 57]],
|
|
"specifier": "jsr:@denotest/no_module_graph@^0.1",
|
|
"specifierRange": [[1, 20], [1, 56]]
|
|
}]
|
|
}
|
|
}
|
|
}
|