@rushstack/webpack-preserve-dynamic-require-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.11.73 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

222

Version

0.11.73

License

MIT

Unpacked Size

89.3 kB

Total Files

13

Last publish

Collaborators

  • octogonz
  • odspnpm
  • rushstack-admin