@postinumero/vite-plugin-module-info
v0.2.0
Published
Get build time module info
Downloads
152
Readme
@postinumero/vite-plugin-module-info
Get build time module info
Setup
import moduleInfo from "@postinumero/vite-plugin-module-info";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [moduleInfo],
});
Example
import { importer, url } from "@postinumero/vite-plugin-module-info";
console.log(importer); // => string | undefined
console.log(url); // => URL | undefined