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

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

82

Version

0.11.78

License

MIT

Unpacked Size

91.3 kB

Total Files

13

Last publish

Collaborators

  • rushstack-admin
  • odspnpm
  • octogonz