vite_plugin_deno_resolve
vite_plugin_deno_resolve copied to clipboard
Support import_map.json
Support import_map.json will be useful
https://deno.land/[email protected]/basics/modules/import_maps
Definitely needed, will find time to add soon. If you want to jump in feel free to investigate adding it too and put up a PR 😊
import { importMaps } from "https://raw.githubusercontent.com/zuisong/vite-deno-import-map-plugin/main/vite-deno-import-map-plugin.ts";
export default defineConfig({
plugins: [
importMaps(
() =>
JSON.parse(
Deno.readTextFileSync("./import_map.json"),
),
),
denoResolve(),
],
});
I wrote a vite plugin for support import-map