rushstack/webpack/preserve-dynamic-require-pl...
Rushbot 8ba10b3952 Bump versions [skip ci] 2024-09-13 00:11:45 +00:00
..
config
src
.eslintrc.js
.npmignore Include CHANGELOG.md in published releases again (#4851) 2024-07-26 10:33:37 -07:00
CHANGELOG.json Update changelogs [skip ci] 2024-09-13 00:11:43 +00:00
CHANGELOG.md Update changelogs [skip ci] 2024-09-13 00:11:43 +00:00
README.md
package.json Bump versions [skip ci] 2024-09-13 00:11:45 +00:00
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.