Registry / web-framework / qiao-webpack

qiao-webpack

JSON →
library5.0.5jsnpmunverified

qiao-webpack is a webpack utility library for simplifying webpack configuration in Node.js projects. The current stable version is 5.0.5, released in 2023 with irregular updates. It wraps common webpack functionality into concise APIs, reducing boilerplate. Unlike raw webpack usage, qiao-webpack provides pre-configured loaders and plugins for rapid setup, though it may lack customization. Suitable for quick prototyping with webpack but not recommended for complex builds. Requires webpack and related loaders as peer dependencies.

npm install qiao-webpack
INSTALL
IMPORT
SIG · QIAO-WEBPACK
Q
qiao-webpack
web-frameworkjavascriptv5.0.5
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.

webpack
const webpack = require('qiao-webpack')
import { webpack } from 'qiao-webpack'
Package uses CommonJS; no default ESM export
qiaoWebpack
const { qiaoWebpack } = require('qiao-webpack')
import qiaoWebpack from 'qiao-webpack'
Named export; not default export
build
const { build } = require('qiao-webpack')
import { build } from 'qiao-webpack'
Named export; common for build tasks

Shows basic usage of qiao-webpack to compile an entry point with default settings.

const webpack = require('qiao-webpack'); // Minimal webpack configuration const config = { entry: './src/index.js', output: { path: __dirname + '/dist', filename: 'bundle.js' } }; // Run webpack with config webpack(config).then(stats => { console.log('Build completed:', stats); }).catch(err => { console.error('Build failed:', err); });
Debug
Known issues
gotchaPackage uses CommonJS only; not designed for ESM or TypeScript projects.
fix
Use require() instead of import statements.
affects: *
deprecatedVersion 5.x may rely on webpack 4 internally; check compatibility with webpack 5.
fix
Upgrade to latest version or specify webpack version in peer dependencies.
affects: >=5.0.0 <6.0.0
gotchaNo TypeScript definitions provided; type checking may fail in TS projects.
fix
Create custom .d.ts file or use // @ts-ignore.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'qiao-webpack'
Package not installed or not in node_modules.
fix
Run 'npm install qiao-webpack --save'.
TypeError: webpack is not a function
Incorrect import method (e.g., using named import instead of default).
fix
Use 'const webpack = require("qiao-webpack")' (no destructuring).
Error: Unknown option '--config'
Using CLI syntax that is not supported by this package's wrapper.
fix
Use the API directly: webpack(config).then(...).
Upgrade
Version history
5.0.5latest on npm
Audit
Dependencies
webpackoptionalCore bundler used for compilation
webpack-clioptionalCLI tool for running webpack commands
Agent activity
7 hits · last 30 days
node
6
Resources
qiao-webpack — npm install qiao-webpack · libregistry