GMI Bundler Vite
raw JSON → 1.1.8-alpha.0 verified Sat Apr 25 auth: no javascript
An alpha-stage Vite bundler plugin for the GMI ecosystem, version 1.1.8-alpha.0. Integrates React and Vite to streamline GMI app builds. Released as a pre-release, lacks documentation and may change rapidly. Differentiates by targeting GMI-specific bundling needs rather than general-purpose Vite plugins. Ships TypeScript types but has minimal adoption outside its internal use.
Common errors
error Cannot find module 'gmi-bundler-vite' ↓
cause Not installed or incorrect import path
fix
Run
npm install gmi-bundler-vite@1.1.8-alpha.0 error gmiBundlerVite is not a function ↓
cause Using named import pattern for default export after breaking change
fix
Use default import:
import gmiBundlerVite from 'gmi-bundler-vite' error TypeError: Cannot read properties of undefined (reading 'resolvePlugin') ↓
cause Vite version mismatch; plugin expects Vite 4.x internals
fix
Downgrade to Vite 4.x or wait for updated plugin version
Warnings
gotcha Package is alpha; breaking changes frequent without notice ↓
fix Pin exact version and check changelog before upgrading
gotcha No README or documentation provided; usage must be inferred from source ↓
fix Review source code or contact maintainer
deprecated Requires Vite 4.x; not yet compatible with Vite 5 ↓
fix Use Vite 4.x until update is released
breaking Default export changed from function to object in v1.1.0 ↓
fix Use `import gmiBundlerVite from 'gmi-bundler-vite'; gmiBundlerVite()` instead of `import { createPlugin } from 'gmi-bundler-vite'`
Install
npm install gmi-bundler-vite yarn add gmi-bundler-vite pnpm add gmi-bundler-vite Imports
- default wrong
const gmiBundlerVite = require('gmi-bundler-vite')correctimport gmiBundlerVite from 'gmi-bundler-vite' - BundlerVite wrong
import { bundlerVite } from 'gmi-bundler-vite'correctimport { BundlerVite } from 'gmi-bundler-vite' - type BundlerViteOptions wrong
import { BundlerViteOptions } from 'gmi-bundler-vite'correctimport type { BundlerViteOptions } from 'gmi-bundler-vite'
Quickstart
import { defineConfig } from 'vite';
import gmiBundlerVite from 'gmi-bundler-vite';
export default defineConfig({
plugins: [gmiBundlerVite()]
});