1.0.0 • Published 3 years ago

webpack-ignore-dynamic-require v1.0.0

Weekly downloads
8
License
MIT
Repository
-
Last release
3 years ago

Webpack / Ignore dynamic require

When you are using webpack for a backend project, some projects try to use require calls with variable, e.g. to load configuration files. Webpack is usually confused by this, so this plugin will simply ignore them, and let the call as-is.

Usage

The plugin takes no options. Simply require it and invoke like any other plugin.

// webpack.config.js
const IgnoreDynamicRequire = require('webpack-ignore-dynamic-require');

module.exports = {
  // ...
  plugins: [
    new IgnoreDynamicRequire()
  ]
}
1.0.0

3 years ago