Plugin to enable Deno resolution inside [vite](https://github.com/vitejs/vite). It supports:
npm install @deno/vite-pluginPlugin to enable Deno resolution inside vite.
It supports:
- Alias mappings in deno.json
- npm: specifier
- jsr: specifier
- http: and https: specifiers
Deno specific resolution cannot be used in vite.config.ts because it's not
possible to intercept the bundling process of the config file in vite.
Install this package:
``sh`npm
npm install @deno/vite-pluginpnpm
pnpm install @deno/vite-plugindeno
deno install npm:@deno/vite-plugin
Add the plugin to your vite configuration file vite.config.ts:
`diff
import { defineConfig } from "vite";
+ import deno from "@deno/vite-plugin";
export default defineConfig({
+ plugins: [deno()],
});
``
MIT, see the license file.