diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-10-05 01:35:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 01:35:55 +0200 |
commit | f1d3a170430501b4fab1a2d2abb5d77528251c77 (patch) | |
tree | 4951edeccc1ef25e4dc2703a6a8e2b38a33fbb20 /cli/tests/integration/mod.rs | |
parent | 64a7187238c4f291f254bd6eb58138a3a6534898 (diff) |
feat: add --compat flag to provide built-in Node modules (#12293)
This commit adds "--compat" flag. When the flag is passed a set of mappings for
built-in Node modules is injected into the import map. If user doesn't
explicitly provide an import map (using "--import-map" flag) then a map is
created on the fly. If there are already existing mappings in import map that
would clash with built-in Node modules a set of diagnostics is printed to the
terminal with suggestions how to proceed.
Diffstat (limited to 'cli/tests/integration/mod.rs')
-rw-r--r-- | cli/tests/integration/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/tests/integration/mod.rs b/cli/tests/integration/mod.rs index e3450c8a1..65a8a7516 100644 --- a/cli/tests/integration/mod.rs +++ b/cli/tests/integration/mod.rs @@ -54,6 +54,8 @@ macro_rules! itest_flaky( mod bundle; #[path = "cache_tests.rs"] mod cache; +#[path = "compat_tests.rs"] +mod compat; #[path = "compile_tests.rs"] mod compile; #[path = "coverage_tests.rs"] |