{"id":27018,"library":"gmi-bundler-webpack","title":"GMI Bundler Webpack","description":"A webpack bundler wrapper for the GMI framework ecosystem, version 1.0.31-alpha.0. Provides pre-configured webpack integration for GMI applications, handling asset bundling and module resolution. As an alpha release, it is unstable and subject to breaking changes. Differentiated by tight integration with GMI's module system, but lacks documentation and stability guarantees compared to standard webpack setups.","status":"active","version":"1.0.31-alpha.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","gmi","typescript"],"install":[{"cmd":"npm install gmi-bundler-webpack","lang":"bash","label":"npm"},{"cmd":"yarn add gmi-bundler-webpack","lang":"bash","label":"yarn"},{"cmd":"pnpm add gmi-bundler-webpack","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core bundler dependency for module compilation and asset processing.","package":"webpack","optional":false}],"imports":[{"note":"Default export; common mistake is destructuring named export. ESM-only.","wrong":"const { gmiBundlerWebpack } = require('@gmi/bundler-webpack')","symbol":"gmiBundlerWebpack","correct":"import gmiBundlerWebpack from '@gmi/bundler-webpack'"},{"note":"Named export for the plugin class.","wrong":"import GmiWebpackPlugin from '@gmi/bundler-webpack'","symbol":"GmiWebpackPlugin","correct":"import { GmiWebpackPlugin } from '@gmi/bundler-webpack'"},{"note":"TypeScript type import; using value import will cause runtime error.","wrong":"import { GmiBundlerConfig } from '@gmi/bundler-webpack'","symbol":"GmiBundlerConfig","correct":"import type { GmiBundlerConfig } from '@gmi/bundler-webpack'"}],"quickstart":{"code":"import gmiBundlerWebpack from '@gmi/bundler-webpack';\nimport type { GmiBundlerConfig } from '@gmi/bundler-webpack';\n\nconst config: GmiBundlerConfig = {\n  entry: './src/index.ts',\n  output: {\n    path: './dist',\n    filename: 'bundle.js'\n  },\n  plugins: [\n    new gmiBundlerWebpack.GmiWebpackPlugin()\n  ]\n};\n\nexport default config;","lang":"typescript","description":"Shows configuration using TypeScript with GMI bundler webpack, including typed config and plugin instantiation."},"warnings":[{"fix":"Pin exact version and test after each alpha release.","message":"Alpha version may have incompatible changes without major version bump.","severity":"breaking","affected_versions":">=1.0.0 <1.1.0"},{"fix":"Use new GmiWebpackPlugin() instead of calling gmiBundlerWebpack().","message":"gmiBundlerWebpack function deprecated in favor of GmiWebpackPlugin class.","severity":"deprecated","affected_versions":">=1.0.20-alpha.0"},{"fix":"Ensure project uses webpack 5.x.","message":"Webpack 5 required; not compatible with webpack 4.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install @gmi/bundler-webpack@1.0.31-alpha.0' and ensure import uses correct path.","cause":"Package not installed or incorrect import path.","error":"Module not found: Error: Can't resolve '@gmi/bundler-webpack'"},{"fix":"Use 'new gmiBundlerWebpack.GmiWebpackPlugin()' or import named export.","cause":"Attempting to use gmiBundlerWebpack as a constructor when it's a default export.","error":"TypeError: gmiBundlerWebpack is not a constructor"},{"fix":"Add appropriate loaders (e.g., @gmi/webpack-loader) to webpack config.","cause":"Missing webpack loaders for file types used in GMI (e.g., .gmi files).","error":"You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}