Registry / web-framework / gmi-bundler-webpack

gmi-bundler-webpack

JSON →
library1.0.31-alpha.0jsnpmunverified

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.

npm install gmi-bundler-webpack
INSTALL
IMPORT
SIG · GMI-BUNDLER-WEBPAC
G
gmi-bundler-webpack
web-frameworkjavascriptv1.0.31-alpha.0
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.

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.
fix
Pin exact version and test after each alpha release.
affects: >=1.0.0 <1.1.0
deprecatedgmiBundlerWebpack function deprecated in favor of GmiWebpackPlugin class.
fix
Use new GmiWebpackPlugin() instead of calling gmiBundlerWebpack().
affects: >=1.0.20-alpha.0
gotchaWebpack 5 required; not compatible with webpack 4.
fix
Ensure 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.
fix
Run '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.
fix
Use '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).
fix
Add 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.
Agent activity
4 hits · last 30 days
node
4
Resources
gmi-bundler-webpack — npm install gmi-bundler-webpack · libregistry