https://github.com/itsdouges/vite_plugin_deno_resolve
A plugin for Vite that resolves modules with Deno.
https://github.com/itsdouges/vite_plugin_deno_resolve
deno plugin vite
Last synced: 17 days ago
JSON representation
A plugin for Vite that resolves modules with Deno.
- Host: GitHub
- URL: https://github.com/itsdouges/vite_plugin_deno_resolve
- Owner: itsdouges
- Created: 2022-12-19T05:12:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-20T02:08:35.000Z (over 2 years ago)
- Last Synced: 2025-03-28T11:37:12.638Z (9 months ago)
- Topics: deno, plugin, vite
- Language: TypeScript
- Homepage: https://deno.land/x/vite_plugin_deno_resolve
- Size: 72.3 KB
- Stars: 16
- Watchers: 5
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# vite_plugin_deno_resolve
This plugin enables [Vite](https://vitejs.dev) to resolve modules using
[Deno](https://deno.land), the easiest, most secure JavaScript runtime.
See:
[Deno feature highlights](https://deno.land/manual@v1.29.1/introduction#feature-highlights).
## Requirements
- Deno v1.29.1 or higher.
- Vite v3.2.4 or higher.
## Install
Import the plugin to your Vite config and pass it to the plugins array.
```js
import { defineConfig } from 'npm:vite@3.2.4';
import denoResolve from 'https://deno.land/x/vite_plugin_deno_resolve/mod.ts';
export default defineConfig({
plugins: [denoResolve()],
});
```
> Using VSCode? Make sure to install the
> [Deno extension](https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno)
> and set `deno.enable` in your VSCode workspace settings.
You're all set! Now when running Vite all dependencies will be resolved by Deno
and if missing, cached locally.
## Local development
```sh
deno task url # Start url example
deno task npm # Start npm example
```