{"id":28121,"library":"qiao-webpack","title":"qiao-webpack","description":"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.","status":"active","version":"5.0.5","language":"javascript","source_language":"en","source_url":"https://github.com/uikoo9/qiao-nodejs","tags":["javascript","webpack","tools"],"install":[{"cmd":"npm install qiao-webpack","lang":"bash","label":"npm"},{"cmd":"yarn add qiao-webpack","lang":"bash","label":"yarn"},{"cmd":"pnpm add qiao-webpack","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core bundler used for compilation","package":"webpack","optional":true},{"reason":"CLI tool for running webpack commands","package":"webpack-cli","optional":true}],"imports":[{"note":"Package uses CommonJS; no default ESM export","wrong":"import { webpack } from 'qiao-webpack'","symbol":"webpack","correct":"const webpack = require('qiao-webpack')"},{"note":"Named export; not default export","wrong":"import qiaoWebpack from 'qiao-webpack'","symbol":"qiaoWebpack","correct":"const { qiaoWebpack } = require('qiao-webpack')"},{"note":"Named export; common for build tasks","wrong":"import { build } from 'qiao-webpack'","symbol":"build","correct":"const { build } = require('qiao-webpack')"}],"quickstart":{"code":"const webpack = require('qiao-webpack');\n\n// Minimal webpack configuration\nconst config = {\n  entry: './src/index.js',\n  output: {\n    path: __dirname + '/dist',\n    filename: 'bundle.js'\n  }\n};\n\n// Run webpack with config\nwebpack(config).then(stats => {\n  console.log('Build completed:', stats);\n}).catch(err => {\n  console.error('Build failed:', err);\n});","lang":"javascript","description":"Shows basic usage of qiao-webpack to compile an entry point with default settings."},"warnings":[{"fix":"Use require() instead of import statements.","message":"Package uses CommonJS only; not designed for ESM or TypeScript projects.","severity":"gotcha","affected_versions":"*"},{"fix":"Upgrade to latest version or specify webpack version in peer dependencies.","message":"Version 5.x may rely on webpack 4 internally; check compatibility with webpack 5.","severity":"deprecated","affected_versions":">=5.0.0 <6.0.0"},{"fix":"Create custom .d.ts file or use // @ts-ignore.","message":"No TypeScript definitions provided; type checking may fail in TS projects.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'npm install qiao-webpack --save'.","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'qiao-webpack'"},{"fix":"Use 'const webpack = require(\"qiao-webpack\")' (no destructuring).","cause":"Incorrect import method (e.g., using named import instead of default).","error":"TypeError: webpack is not a function"},{"fix":"Use the API directly: webpack(config).then(...).","cause":"Using CLI syntax that is not supported by this package's wrapper.","error":"Error: Unknown option '--config'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}