@deno/vite-plugin

1.0.4 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @deno/vite-plugin

Weekly Downloads

4,086

Version

1.0.4

License

MIT

Unpacked Size

12.3 kB

Total Files

13

Last publish

Collaborators

  • ry
  • kt3k
  • dsherret
  • divy-work
  • denobot