Registry / devops / webpack-bundler

webpack-bundler

JSON →
library0.1.0-alpha.1jsnpmunverified

An experimental alpha package providing webpack bundling flow and proxy-mock functionality for development. Version 0.1.0-alpha.1 is pre-release with no stable release yet. It depends on webpack ^3.0.0. Key differentiators: integrates proxy mocking directly into the bundling pipeline, but is early-stage and likely unstable. Not recommended for production use.

npm install webpack-bundler
INSTALL
IMPORT
SIG · WEBPACK-BUNDLER
W
webpack-bundler
devopsjavascriptv0.1.0-alpha.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

default
import webpackBundler from 'webpack-bundler'
const webpackBundler = require('webpack-bundler')
ESM-only, likely no CJS support in alpha.
proxyMock
import { proxyMock } from 'webpack-bundler'
Named export for proxy-mock functionality.
bundlerConfig
import { bundlerConfig } from 'webpack-bundler'
Named export for configuration.

Shows basic usage of webpack-bundler with proxyMock integration.

import webpackBundler from 'webpack-bundler'; import { proxyMock } from 'webpack-bundler'; const config = { entry: './src/index.js', output: { path: './dist', filename: 'bundle.js' }, proxy: proxyMock({ '/api': 'http://localhost:3000' }) }; webpackBundler(config, (err, stats) => { if (err) console.error(err); else console.log(stats.toString()); });
Debug
Known issues
breakingAlpha version may have incomplete APIs and breaking changes between releases.
fix
Lock to exact version and expect migration.
affects: 0.1.0-alpha.1
deprecatedPackage is unlikely maintained; no updates since initial alpha.
fix
Consider alternatives like webpack-dev-server with proxy.
affects: >=0.0.0
gotchaRequires webpack ^3.0.0, not compatible with webpack 4 or 5.
fix
If using newer webpack, do not use this package.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'webpack-bundler'
Package not installed or name mistyped.
fix
npm install webpack-bundler
Error: webpack version mismatch; expected ^3.0.0
Incompatible webpack version installed.
fix
npm install webpack@3
TypeError: webpackBundler is not a function
Incorrect import (e.g., using require in ESM context).
fix
Use import syntax as shown in docs.
Upgrade
Version history
0.1.0-alpha.1latest on npm
Audit
Dependencies
webpackrequiredpeer dependency required for bundling, version ^3.0.0
Agent activity
4 hits · last 30 days
node
4
Resources
webpack-bundler — npm install webpack-bundler · libregistry