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

0.11.40 • 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

20

Version

0.11.40

License

MIT

Unpacked Size

11.6 kB

Total Files

11

Last publish

Collaborators

  • octogonz
  • odspnpm
  • rushstack-admin