Registry / devops / webpack-emit-all-plugin

webpack-emit-all-plugin

JSON →
library2.0.1jsnpmunverified

Webpack plugin that emits all files in the dependency tree as separate files without bundling, allowing use of webpack loaders/plugins for non-bundling tasks. Current version 2.0.1 (unreleased, API usable but unstable, no pre-release). Peer dependency on webpack >=4. Differentiators: eliminates bundling step, useful for processing assets individually while leveraging webpack's loader pipeline. Last updated 2018, no recent maintenance.

npm install webpack-emit-all-plugin
INSTALL
IMPORT
SIG · WEBPACK-EMIT-ALL-P
W
webpack-emit-all-plugin
devopsjavascriptv2.0.1
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.

EmitAllPlugin
const EmitAllPlugin = require('webpack-emit-all-plugin')
import EmitAllPlugin from 'webpack-emit-all-plugin'
Package does not export ESM; CJS require is required.
EmitAllPlugin
const { EmitAllPlugin } = require('webpack-emit-all-plugin')
const EmitAllPlugin = require('webpack-emit-all-plugin').default
The plugin is exported as module.exports directly, not as named export.
EmitAllPlugin
plugins: [new EmitAllPlugin({ path: './dist' })]
plugins: [EmitAllPlugin({ path: './dist' })]
Must be instantiated with 'new' as it is a class.

Configures webpack with EmitAllPlugin to emit all processed files individually without bundling, applying babel-loader.

const path = require('path'); const EmitAllPlugin = require('webpack-emit-all-plugin'); module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'dist') }, module: { rules: [ { test: /\.js$/, use: 'babel-loader' } ] }, plugins: [ new EmitAllPlugin({ ignorePattern: /node_modules/, path: path.join(__dirname, 'unbundled-out') }) ] };
Debug
Known issues
breakingPlugin may not work with webpack 5 due to internal API changes.
fix
Use webpack 4 or test compatibility; consider alternatives like CopyWebpackPlugin.
affects: >=2.0.0
deprecatedPackage has not been updated since 2018; no support for webpack 5 or newer features.
fix
Migrate to actively maintained plugin like copy-webpack-plugin or assets-webpack-plugin.
affects: >=0
gotchaAll files in dependency tree are emitted, including node_modules unless ignored.
fix
Always provide an ignorePattern option to exclude node_modules to avoid large output.
affects: >=0
breakingOutput path must be absolute or relative to output.path; relative paths may cause unexpected results.
fix
Use path.resolve or path.join with __dirname to specify absolute output path.
affects: >=0
Errors
Common errors & fixes
TypeError: EmitAllPlugin is not a constructor
Importing the plugin incorrectly as a default export or without 'new'.
fix
Use 'new EmitAllPlugin({...})' after proper require: const EmitAllPlugin = require('webpack-emit-all-plugin');
Error: Cannot find module 'webpack-emit-all-plugin'
Package not installed or in devDependencies.
fix
Run 'npm install -D webpack-emit-all-plugin' to install as dev dependency.
Output files not emitted to specified path
The 'path' option may be relative or missing; defaults to webpack output.path.
fix
Set absolute path using path.resolve(__dirname, 'custom-output') in plugin options.
Upgrade
Version history
2.0.1latest on npm
Audit
Dependencies
webpackrequiredpeer dependency, plugin runs as webpack plugin
Agent activity
6 hits · last 30 days
node
6
Resources
webpack-emit-all-plugin — npm install webpack-emit-all-plugin · libregistry