vite_plugin_deno_resolve icon indicating copy to clipboard operation
vite_plugin_deno_resolve copied to clipboard

Support import_map.json

Open zuisong opened this issue 3 years ago • 2 comments

Support import_map.json will be useful

https://deno.land/[email protected]/basics/modules/import_maps

zuisong avatar Jan 09 '23 02:01 zuisong

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 😊

itsdouges avatar Jan 09 '23 02:01 itsdouges


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

zuisong avatar Jan 15 '23 06:01 zuisong