diff --git a/README.md b/README.md index 19e53ca..81c26a8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,17 @@ # Deno vite plugin Plugin to enable Deno resolution inside [vite](https://github.com/vitejs/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 diff --git a/package.json b/package.json index 062910d..038e1e0 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,15 @@ "files": [ "dist/" ], + "keywords": [ + "deno", + "vite", + "plugin" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/denoland/deno-vite-plugin.git" + }, "scripts": { "test": "vitest", "build": "rimraf dist/ && tsc", diff --git a/src/index.ts b/src/index.ts index 31f48b3..07fb77c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,7 @@ import prefixPlugin from "./prefixPlugin.js"; import mainPlugin from "./resolvePlugin.js"; import { DenoResolveResult } from "./resolver.js"; -export default function denoPlugin(): Plugin[] { +export default function deno(): Plugin[] { const cache = new Map(); return [prefixPlugin(cache), mainPlugin(cache)];