Registry / devops / webpack-dll-bundles-plugin

webpack-dll-bundles-plugin

JSON →
library1.0.0-beta.5jsnpmunverified

A Webpack plugin that automates creation of DLL bundles using Webpack's DllPlugin and DllReferencePlugin. This package (v1.0.0-beta.5) is an early beta release; it simplifies splitting vendor/polyfill code into separate DLL files, monitors package changes for rebuilds, and provides a resolveFile helper. It is intended for Webpack 3/4 but has known issues with newer versions. Development appears stalled, with no updates since 2017. Alternatives: hard-source-webpack-plugin or Webpack's built-in cache.

npm install webpack-dll-bundles-plugin
INSTALL
IMPORT
SIG · WEBPACK-DLL-BUNDLE
W
webpack-dll-bundles-plugin
devopsjavascriptv1.0.0-beta.5
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DllBundlesPlugin
const DllBundlesPlugin = require('webpack-dll-bundles-plugin');
import DllBundlesPlugin from 'webpack-dll-bundles-plugin';
Package uses CommonJS; ES module import may fail in Node environments.
resolveFile
DllBundlesPlugin.resolveFile('polyfills')
resolveFile('polyfills')
resolveFile is a static method on DllBundlesPlugin, not a standalone export.
DllBundlesPlugin
const { DllBundlesPlugin } = require('webpack-dll-bundles-plugin');
Destructured require works because the plugin exports an object with the constructor.

Creates DLL bundles for polyfills and vendor libraries, merging a common webpack config.

const DllBundlesPlugin = require('webpack-dll-bundles-plugin'); const webpackMerge = require('webpack-merge'); const commonConfig = require('./webpack.common.js'); module.exports = { plugins: [ new DllBundlesPlugin({ bundles: { polyfills: ['core-js', 'zone.js'], vendor: ['react', 'react-dom'] }, dllDir: './dll', webpackConfig: webpackMerge(commonConfig, { devtool: 'cheap-module-source-map', plugins: [] }) }) ] };
Debug
Known issues
deprecatedPlugin is unmaintained and incompatible with Webpack 5; use at your own risk.
fix
Consider using hard-source-webpack-plugin or Webpack's built-in persistent caching.
affects: >=1.0.0-beta.5
gotchaThe plugin overrides webpackConfig entry and adds DllPlugin automatically; custom entry in webpackConfig will be ignored.
fix
Define bundles in the plugin config, not in the base webpack config.
affects: *
gotcharesolveFile() returns a filename with a specific template that may change; do not hardcode DLL filenames.
fix
Always use DllBundlesPlugin.resolveFile() to get DLL filenames.
affects: *
gotchaThe plugin may not automatically rebuild DLLs when packages update; watch functionality is listed as TODO.
fix
Manually trigger rebuild or watch using webpack --watch.
affects: 1.0.0-beta.5
Errors
Common errors & fixes
Module not found: Error: Can't resolve 'webpack-dll-bundles-plugin'
Package missing after npm install; possibly not installed or wrong version.
fix
Run 'npm install webpack-dll-bundles-plugin@1.0.0-beta.5 --save-dev'
TypeError: DllBundlesPlugin is not a constructor
Incorrect import style; default import may not be a function.
fix
Use 'const DllBundlesPlugin = require('webpack-dll-bundles-plugin');'
Error: DllBundlesPlugin requires webpackConfig
Missing webpackConfig property in plugin options.
fix
Add 'webpackConfig' to the options object (path or config object).
Upgrade
Version history
1.0.0-beta.5latest on npm
Audit
Dependencies
webpackrequiredPeer dependency; requires DllPlugin and DllReferencePlugin available in Webpack 3/4.
Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
webpack-dll-bundles-plugin — npm install webpack-dll-bundles-plugin · libregistry