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.
gmiBundlerWebpack
✓ import gmiBundlerWebpack from '@gmi/bundler-webpack'
✗ const { gmiBundlerWebpack } = require('@gmi/bundler-webpack')
Default export; common mistake is destructuring named export. ESM-only.
GmiWebpackPlugin
✓ import { GmiWebpackPlugin } from '@gmi/bundler-webpack'
✗ import GmiWebpackPlugin from '@gmi/bundler-webpack'
Named export for the plugin class.
GmiBundlerConfig
✓ import type { GmiBundlerConfig } from '@gmi/bundler-webpack'
✗ import { GmiBundlerConfig } from '@gmi/bundler-webpack'
TypeScript type import; using value import will cause runtime error.
Shows configuration using TypeScript with GMI bundler webpack, including typed config and plugin instantiation.
import gmiBundlerWebpack from '@gmi/bundler-webpack';
import type { GmiBundlerConfig } from '@gmi/bundler-webpack';
const config: GmiBundlerConfig = {
entry: './src/index.ts',
output: {
path: './dist',
filename: 'bundle.js'
},
plugins: [
new gmiBundlerWebpack.GmiWebpackPlugin()
]
};
export default config;
Debug
Known issues
breakingAlpha version may have incompatible changes without major version bump.fixPin exact version and test after each alpha release.
affects: >=1.0.0 <1.1.0
deprecatedgmiBundlerWebpack function deprecated in favor of GmiWebpackPlugin class.fixUse new GmiWebpackPlugin() instead of calling gmiBundlerWebpack().
affects: >=1.0.20-alpha.0
gotchaWebpack 5 required; not compatible with webpack 4.fixEnsure project uses webpack 5.x.
affects: >=1.0.0
Errors
Common errors & fixes
Module not found: Error: Can't resolve '@gmi/bundler-webpack'
Package not installed or incorrect import path.
fixRun 'npm install @gmi/bundler-webpack@1.0.31-alpha.0' and ensure import uses correct path.
TypeError: gmiBundlerWebpack is not a constructor
Attempting to use gmiBundlerWebpack as a constructor when it's a default export.
fixUse 'new gmiBundlerWebpack.GmiWebpackPlugin()' or import named export.
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
Missing webpack loaders for file types used in GMI (e.g., .gmi files).
fixAdd appropriate loaders (e.g., @gmi/webpack-loader) to webpack config.
Upgrade
Version history
1.0.31-alpha.0latest on npm
Audit
Dependencies
webpackrequiredCore bundler dependency for module compilation and asset processing.