@simplemodule/client
v0.0.30
Published
[](https://www.npmjs.com/package/@simplemodule/client)
Readme
@simplemodule/client
Vite plugin and utilities for building SimpleModule frontend modules.
Installation
npm install @simplemodule/clientQuick Start
// vite.config.ts
import { defineModuleConfig } from '@simplemodule/client/module';
export default defineModuleConfig({
moduleName: 'Products',
});// app.tsx
import { resolvePage } from '@simplemodule/client/resolve-page';
createInertiaApp({
resolve: resolvePage,
// ...
});Key Features
- defineModuleConfig -- Vite configuration factory for module library builds
- resolvePage -- dynamic page resolver that loads module bundles by route name
- Vite vendor plugin -- bundles shared dependencies (React, Inertia) for module consumption
