{"id":20806,"library":"webpack-partial","title":"webpack-partial","description":"A utility library for composing webpack configuration files using composable helper functions. Version 2.2.0 is the latest stable release (npm). The package provides curried helpers (entry, loader, output, plugin, tap) that take configuration arguments and a webpack config object, enabling clean composition via lodash/fp/compose. It normalizes entry values to arrays for consistency and supports functional patterns. Unlike ad-hoc merging or webpack-merge, it offers a functional, composable API targeted at modular webpack configs. No explicit release cadence.","status":"active","version":"2.2.0","language":"javascript","source_language":"en","source_url":"https://github.com/izaakschroeder/webpack-partial","tags":["javascript","webpack","partial","include"],"install":[{"cmd":"npm install webpack-partial","lang":"bash","label":"npm"},{"cmd":"yarn add webpack-partial","lang":"bash","label":"yarn"},{"cmd":"pnpm add webpack-partial","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Used internally for utility functions (partial, flow, etc.)","package":"lodash","optional":false}],"imports":[{"note":"Default export from subpath module","symbol":"entry","correct":"import entry from 'webpack-partial/entry'"},{"note":"Default export from subpath module","symbol":"loader","correct":"import loader from 'webpack-partial/loader'"},{"note":"Default export from subpath module","symbol":"output","correct":"import output from 'webpack-partial/output'"},{"note":"Default export from subpath module","symbol":"plugin","correct":"import plugin from 'webpack-partial/plugin'"},{"note":"Default export from subpath module","symbol":"tap","correct":"import tap from 'webpack-partial/tap'"}],"quickstart":{"code":"import compose from 'lodash/fp/compose';\nimport entry from 'webpack-partial/entry';\nimport loader from 'webpack-partial/loader';\nimport plugin from 'webpack-partial/plugin';\nimport output from 'webpack-partial/output';\nimport tap from 'webpack-partial/tap';\nimport StatsPlugin from 'stats-webpack-plugin';\n\nconst config = compose(\n  entry('src/index.js'),\n  loader({ test: /\\.js$/, use: 'babel-loader' }),\n  plugin(new StatsPlugin()),\n  output({ publicPath: '/build/' }),\n  tap(config => console.log('Final config:', config))\n)({ mode: 'development' });\n\nexport default config;","lang":"javascript","description":"Demonstrates composing a webpack config using multiple helpers: setting entry, adding a loader and plugin, modifying output, and tapping for logging."},"warnings":[{"fix":"Use array operations when accessing entry values inside callbacks.","message":"Entry values are always normalized to arrays. Mixing with plain string/webpack array expectations may cause confusion.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Ensure you provide all arguments or use compose to pass the config at the end.","message":"Functions are curried and expect the webpack config as the last argument. Forgetting to apply all arguments results in a partial function instead of a config.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Pin to exact version and review changelog before upgrading.","message":"The package does not follow semantic versioning strictly; minor releases may include breaking changes.","severity":"deprecated","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use default import: import entry from 'webpack-partial/entry'","cause":"Using non-default import or wrong import path (e.g., import { entry } from 'webpack-partial')","error":"TypeError: (0 , _entry.default) is not a function"},{"fix":"Wrap value in array or use the function callback form.","cause":"Entry helper expects an array value but received an object or string directly.","error":"Error: entry.map is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}