1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-29 18:49:07 -05:00
denoland-deno/tests/specs/run/jsx_import_source
Nathan Whitaker 6f506208f6
feat(unstable): support caching npm dependencies only as they're needed (#27300)
Currently deno eagerly caches all npm packages in the workspace's npm
resolution. So, for instance, running a file `foo.ts` that imports
`npm:chalk` will also install all dependencies listed in `package.json`
and all `npm` dependencies listed in the lockfile.

This PR refactors things to give more control over when and what npm
packages are automatically cached while building the module graph.

After this PR, by default the current behavior is unchanged _except_ for
`deno install --entrypoint`, which will only cache npm packages used by
the given entrypoint. For the other subcommands, this behavior can be
enabled with `--unstable-npm-lazy-caching`


Fixes #25782.

---------

Signed-off-by: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
2024-12-10 18:24:23 -08:00
..
jsx chore(lint): add .out file reference checker (#27078) 2024-11-26 20:53:20 -08:00
jsx_precompile chore(lint): add .out file reference checker (#27078) 2024-11-26 20:53:20 -08:00
__test__.jsonc feat(unstable): support caching npm dependencies only as they're needed (#27300) 2024-12-10 18:24:23 -08:00
jsx_import_source.out chore(lint): add .out file reference checker (#27078) 2024-11-26 20:53:20 -08:00
jsx_import_source_dev.out chore(lint): add .out file reference checker (#27078) 2024-11-26 20:53:20 -08:00
jsx_import_source_error.out chore(lint): add .out file reference checker (#27078) 2024-11-26 20:53:20 -08:00
jsx_import_source_import_map.out chore(lint): add .out file reference checker (#27078) 2024-11-26 20:53:20 -08:00
jsx_import_source_import_map_dev.out chore(lint): add .out file reference checker (#27078) 2024-11-26 20:53:20 -08:00
jsx_import_source_no_pragma.tsx chore(lint): add .out file reference checker (#27078) 2024-11-26 20:53:20 -08:00
jsx_import_source_pragma.tsx chore(lint): add .out file reference checker (#27078) 2024-11-26 20:53:20 -08:00
jsx_import_source_pragma_import_map.tsx chore(lint): add .out file reference checker (#27078) 2024-11-26 20:53:20 -08:00