Socket
Book a DemoInstallSign in
Socket

@deno/vite-plugin

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deno/vite-plugin

Plugin to enable Deno resolution inside [vite](https://github.com/vitejs/vite). It supports:

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
5
Created
Source

Deno vite plugin

Plugin to enable Deno resolution inside vite. It supports:

  • Alias mappings in deno.json
  • npm: specifier
  • jsr: specifier
  • http: and https: specifiers

Limitations

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.

Usage

Install this package:

# npm
npm install @deno/vite-plugin
# pnpm
pnpm install @deno/vite-plugin
# deno
deno install npm:@deno/vite-plugin

Add the plugin to your vite configuration file vite.config.ts:

  import { defineConfig } from "vite";
+ import deno from "@deno/vite-plugin";

  export default defineConfig({
+   plugins: [deno()],
  });

License

MIT, see the license file.

Keywords

deno

FAQs

Package last updated on 18 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts