diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-04-16 16:46:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 16:46:31 -0400 |
commit | 43c8c1cc6e0f0fe4accde97c52f7f2bb998ac669 (patch) | |
tree | 157e9e3801253b1ad9345aded73e684a39292bc5 /cli/factory.rs | |
parent | 422cff1f247dc334d5eb9387be924f5937b0c6d9 (diff) |
feat(check): allow using side effect imports with unknown module kinds (ex. css modules) (#23392)
This allows people to use imports like:
```ts
import "./app.css";
```
...with `deno check` in systems where there's a bundle step (ex. Vite).
This will still error when using it with `deno run` or if the referenced
file does not exist.
See test cases for behaviour.
Diffstat (limited to 'cli/factory.rs')
-rw-r--r-- | cli/factory.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/factory.rs b/cli/factory.rs index 56837110a..fd33d295c 100644 --- a/cli/factory.rs +++ b/cli/factory.rs @@ -666,6 +666,7 @@ impl CliFactory { // todo(dsherret): ideally the graph container would not be used // for deno cache because it doesn't dynamically load modules DenoSubcommand::Cache(_) => GraphKind::All, + DenoSubcommand::Check(_) => GraphKind::TypesOnly, _ => self.options.type_check_mode().as_graph_kind(), }; Arc::new(ModuleGraphContainer::new(graph_kind)) |