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

0.11.66 • 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.

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

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

    Weekly Downloads

    374

    Version

    0.11.66

    License

    MIT

    Unpacked Size

    86.5 kB

    Total Files

    13

    Last publish

    Collaborators

    • octogonz
    • odspnpm
    • rushstack-admin