How the Deno integration works
mainThe Deno integration is composed of two primary plugins that work together to handle Deno's unique module resolution and loading logic:
- The Resolver: Handles absolutization of specifiers (making relative paths absolute) and processes import maps (including those embedded in
deno.json). - The Loader: Takes fully resolved specifiers and handles the actual loading of the module, including processing redirects until a final module is found.
Most users should use denoPlugins() to instantiate both plugins automatically in the correct order.