Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 29 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-20T02:08:35.000Z (about 1 year ago)
- Last Synced: 2024-10-02T08:43:30.477Z (about 1 month 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/[email protected]/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:[email protected]';
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
```