包详细信息

@rushstack/webpack-preserve-dynamic-require-plugin

microsoft386MIT0.11.103

This plugin tells webpack to leave dynamic calls to "require" as-is instead of trying to bundle them.

自述文件

@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.