0.0.1 • Published 1 year ago

rollup-plugin-module v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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" />
0.0.1

1 year ago

0.0.0

1 year ago