Registry / devops / webpack-defaults

webpack-defaults

JSON →
library4.0.0jsnpmunverified

Tooling to synchronize boilerplate configurations and project scaffolding across webpack ecosystem projects. Current stable version is v6.3.0 (December 2019) with irregular release cadence (multiple minor releases per month). Key differentiators: it is the official webpack-contrib scaffolding tool, providing a single source of truth for CI, linting, testing, and npm scripts. Alternatives like create-react-app or vue-cli are more opinionated for specific frameworks. Requires webpack ^4.3.0 as peer dependency. Last release v6.3.0; development appears stalled since late 2019.

npm install webpack-defaults
INSTALL
IMPORT
SIG · WEBPACK-DEFAULTS
W
webpack-defaults
devopsjavascriptv4.0.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

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

defaults
✓ import defaults from '@webpack-contrib/defaults'
✗ const defaults = require('@webpack-contrib/defaults')
Package is ESM-only; no CommonJS support. Named exports may not exist.
runDefaults
✓ import { runDefaults } from '@webpack-contrib/defaults'
✗ const runDefaults = require('@webpack-contrib/defaults').runDefaults
If runDefaults is exported; check documentation. CJS require may return undefined.
config
✓ import { config } from '@webpack-contrib/defaults'
✗ const config = require('@webpack-contrib/defaults/config')
Do not try to import from subpath; all exports are from main entry.

Shows install and execution of the defaults command to sync webpack project boilerplate configurations.

npm install @webpack-contrib/defaults --save-dev # After install, add a script to package.json manually or run: npm run defaults # The 'defaults' npm script is automatically added to your package.json during install. # To sync configurations: node -e "import('@webpack-contrib/defaults').then(m => m.runDefaults())"
Debug
Known issues
breakingNode.js >=10.13.0 required as of v6.0.0
fix
Upgrade Node.js to version 10.13.0 or higher.
affects: >=6.0.0
breakingSupport for webpack@5 dropped in v6.0.0
fix
Use webpack^4.3.0. For webpack 5, consider alternative scaffolding.
affects: >=6.0.0
deprecatedPackage is no longer actively maintained; last release December 2019
fix
Consider using a different scaffolding tool or forking the repo.
affects: >=0.0.0
gotchaCI configuration may be overwritten on each 'npm run defaults'
fix
Commit CI config changes manually; or disable auto-sync by removing the defaults script.
affects: >=0.0.0
gotchaInstalling from npm requires @webpack-contrib/defaults scope; not webpack-defaults
fix
Use npm install @webpack-contrib/defaults --save-dev
affects: >=0.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/@webpack-contrib/defaults/index.js not supported.
Package is ESM-only but tried to import via CommonJS require()
fix
Use dynamic import: import('@webpack-contrib/defaults').then(m => m.runDefaults())
Module not found: Can't resolve '@webpack-contrib/defaults'
Package name is scoped; webpack-defaults is the unscoped name but the published package is @webpack-contrib/defaults
fix
Ensure package name in import/require is '@webpack-contrib/defaults'
Upgrade
Version history
4.0.0latest on npm
Audit
Dependencies
webpackrequiredpeer dependency: required to scaffold webpack projects
Agent activity
18 hits · last 30 days
node
18
Resources
webpack-defaults — npm install webpack-defaults · libregistry