{"id":18390,"library":"gmi-bundler-vite","title":"GMI Bundler Vite","description":"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.","status":"active","version":"1.1.8-alpha.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","gmi","typescript"],"install":[{"cmd":"npm install gmi-bundler-vite","lang":"bash","label":"npm"},{"cmd":"yarn add gmi-bundler-vite","lang":"bash","label":"yarn"},{"cmd":"pnpm add gmi-bundler-vite","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only; CJS require fails as package type is module","wrong":"const gmiBundlerVite = require('gmi-bundler-vite')","symbol":"default","correct":"import gmiBundlerVite from 'gmi-bundler-vite'"},{"note":"Named export is PascalCase; misspelling with camelCase is common","wrong":"import { bundlerVite } from 'gmi-bundler-vite'","symbol":"BundlerVite","correct":"import { BundlerVite } from 'gmi-bundler-vite'"},{"note":"Type-only export; using value import in runtime code may cause errors if not configured","wrong":"import { BundlerViteOptions } from 'gmi-bundler-vite'","symbol":"type BundlerViteOptions","correct":"import type { BundlerViteOptions } from 'gmi-bundler-vite'"}],"quickstart":{"code":"import { defineConfig } from 'vite';\nimport gmiBundlerVite from 'gmi-bundler-vite';\n\nexport default defineConfig({\n  plugins: [gmiBundlerVite()]\n});","lang":"typescript","description":"Basic setup to use gmi-bundler-vite as a Vite plugin in a GMI project."},"warnings":[{"fix":"Pin exact version and check changelog before upgrading","message":"Package is alpha; breaking changes frequent without notice","severity":"gotcha","affected_versions":">=1.0.0-alpha"},{"fix":"Review source code or contact maintainer","message":"No README or documentation provided; usage must be inferred from source","severity":"gotcha","affected_versions":"all"},{"fix":"Use Vite 4.x until update is released","message":"Requires Vite 4.x; not yet compatible with Vite 5","severity":"deprecated","affected_versions":">=1.1.0"},{"fix":"Use `import gmiBundlerVite from 'gmi-bundler-vite'; gmiBundlerVite()` instead of `import { createPlugin } from 'gmi-bundler-vite'`","message":"Default export changed from function to object in v1.1.0","severity":"breaking","affected_versions":"<1.1.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-vite@1.1.8-alpha.0`","cause":"Not installed or incorrect import path","error":"Cannot find module 'gmi-bundler-vite'"},{"fix":"Use default import: `import gmiBundlerVite from 'gmi-bundler-vite'`","cause":"Using named import pattern for default export after breaking change","error":"gmiBundlerVite is not a function"},{"fix":"Downgrade to Vite 4.x or wait for updated plugin version","cause":"Vite version mismatch; plugin expects Vite 4.x internals","error":"TypeError: Cannot read properties of undefined (reading 'resolvePlugin')"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}