зеркало из https://github.com/microsoft/rushstack.git
8ba10b3952 | ||
---|---|---|
.. | ||
config | ||
src | ||
.eslintrc.js | ||
.npmignore | ||
CHANGELOG.json | ||
CHANGELOG.md | ||
README.md | ||
package.json | ||
tsconfig.json |
README.md
@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.