Registry / web-framework / vite-plugin-graphweaver

vite-plugin-graphweaver

JSON →
library2.22.0jsnpmunverified

A Vite plugin for integrating Graphweaver's admin UI into your project. Current stable version is 2.22.0, released monthly with patches. It is part of the Graphweaver ecosystem, a headless CMS built on GraphQL with support for PostgreSQL, MySQL, SQLite. Key differentiator: seamless integration with Graphweaver's admin panel via Vite. Requires Vite ^5.0.0 || ^6.0.0 || ^7.0.0 as a peer dependency.

npm install vite-plugin-graphweaver
INSTALL
IMPORT
SIG · VITE-PLUGIN-GRAPHW
V
vite-plugin-graphweaver
web-frameworkjavascriptv2.22.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import graphweaver from 'vite-plugin-graphweaver'
const graphweaver = require('vite-plugin-graphweaver')
Plugin is ESM-only; CommonJS require not supported.
GraphweaverPluginConfig
import { GraphweaverPluginConfig } from 'vite-plugin-graphweaver'
import GraphweaverPluginConfig from 'vite-plugin-graphweaver'
Named export for TypeScript config types.
graphweaverPlugin
import { graphweaverPlugin } from 'vite-plugin-graphweaver'
import graphweaverPlugin from 'vite-plugin-graphweaver'
Named export for the plugin function; default export is also the same function.

Demonstrates adding the Graphweaver Vite plugin to a vite.config.ts file.

// vite.config.ts import { defineConfig } from 'vite'; import graphweaver from 'vite-plugin-graphweaver'; export default defineConfig({ plugins: [ graphweaver({ // Optional configuration // adminUi: { enabled: true }, }), ], });
Debug
Known issues
breakingIn v2.22.0, msal packages were moved from peer to direct dependencies. If you use pnpm, you may need overrides to avoid duplicate versions.
fix
Add pnpm overrides in package.json for @azure/msal-browser and @azure/msal-react to pin versions.
affects: >=2.22.0
gotchaPlugin requires Vite ^5.0.0 || ^6.0.0 || ^7.0.0. Using older Vite versions will cause import errors.
fix
Update Vite to version 5, 6, or 7.
affects: >=2.0.0
gotchaThe plugin is ESM-only; CommonJS require() will fail with 'ERR_REQUIRE_ESM'.
fix
Use import syntax and ensure your project is configured for ESM.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'vite-plugin-graphweaver'
Package not installed or Vite version mismatch.
fix
Install the package: npm install vite-plugin-graphweaver --save-dev
TypeError: graphweaver is not a function
Incorrect import or usage in vite.config.js.
fix
Use import graphweaver from 'vite-plugin-graphweaver' and call it as graphweaver({}).
ERR_REQUIRE_ESM: require() of ES Module not supported
Using CommonJS require() to import an ESM-only package.
fix
Switch to import syntax or use dynamic import().
Upgrade
Version history
2.22.0latest on npm
Audit
Dependencies
viterequiredpeer dependency required for plugin to function
@azure/msal-browseroptionalmoved from peer to direct dependency in v2.22.0 for pnpm compatibility
@azure/msal-reactoptionalmoved from peer to direct dependency in v2.22.0 for pnpm compatibility
Agent activity
24 hits · last 30 days
node
20
Meta
1
OpenAI (training)
1
Resources
vite-plugin-graphweaver — npm install vite-plugin-graphweaver · libregistry