webpack-bbq

raw JSON →
5.3.9 verified Sat Apr 25 auth: no javascript maintenance

A webpack plugin that adds BBQ-like functionality for building webpack bundles. Version 5.3.9 is the current stable release, with no recent major releases. This package is a niche plugin for webpack 3.x, relying on webpack-dev-server 2.x. It differentiates itself by providing a custom BBQ plugin for webpack, but its utility is limited to specific legacy setups. The package has low popularity on npm and is not actively maintained.

error TypeError: BbqPlugin is not a constructor
cause Using require('webpack-bbq') without .default in CommonJS environment.
fix
const BbqPlugin = require('webpack-bbq').default;
error Error: Cannot find module 'webpack-bbq'
cause Package not installed or module path resolution failure.
fix
Run 'npm install webpack-bbq' and ensure it's in node_modules.
error SyntaxError: Unexpected token import
cause Using ES6 import in a Node.js environment that does not support ESM without transpilation.
fix
Use require('webpack-bbq').default or configure Babel to transpile ES6 imports.
gotcha Default export requires .default in CommonJS. Using require('webpack-bbq') directly returns the module, not the class.
fix Use require('webpack-bbq').default or switch to ES6 import.
deprecated This plugin is designed for webpack 3.x. It may not work with webpack 4 or 5.
fix Use a modern alternative or update the plugin if available.
gotcha The 'temperature' option must be a number; passing a string may cause unexpected behavior.
fix Ensure temperature is a number, e.g., { temperature: 225 }.
npm install webpack-bbq
yarn add webpack-bbq
pnpm add webpack-bbq

Shows how to add the BbqPlugin to webpack config using CommonJS.

// webpack.config.js
const BbqPlugin = require('webpack-bbq').default;

module.exports = {
  plugins: [
    new BbqPlugin({
      flavor: 'smoky',
      temperature: 225
    })
  ]
};