@rushstack/webpack-preserve-dynamic-require-plugin
v0.11.40
Published
This plugin tells webpack to leave dynamic calls to "require" as-is instead of trying to bundle them.
Downloads
191
Readme
@rushstack/webpack-preserve-dynamic-require-plugin
Overview
This Webpack plugin instructs webpack to leave dynamic usage of require
as-is in the bundled code. For example, if your code contains:
function requireSomeUserThing(path) {
return require(path);
}
The emitted bundle will preserve the call to require(path)
instead of trying to process it.