rollup-plugin-module
v0.0.1
Published
plugin to get rollup module info
Downloads
1
Readme
rollup-plugin-module
plugin to get rollup module info
Before
import * as module from "module";
console.log(module.id);
After
console.log("@/views/HomePage.tsx");
Config
const moduleRollupPlugin = require('rollup-plugin-module');
moduleRollupPlugin({
baseUrl: "./src",
idPrefix: "@/",
include: ['src/**']
})
Type reference
/// <reference types="rollup-plugin-module/client" />