Refactor default export to include sigproRouter

This commit is contained in:
Natxo
2026-03-13 15:34:46 +01:00
committed by GitHub
parent a67363f520
commit 4c8b82fc3d

View File

@@ -1,3 +1,14 @@
// index.js
// 1. Re-export all named core logic (signals, effects, html, etc.)
export * from './sigpro.js'; export * from './sigpro.js';
// 2. Import and re-export the Vite Router Plugin
// This allows users to import { sigproRouter } directly from the package
import sigproRouter from './SigProRouterPlugin/vite-plugin.sigpro.js';
export { sigproRouter };
// 3. Default export for the global namespace (optional)
// Combines core logic and the router plugin into a single object
import * as sigpro from './sigpro.js'; import * as sigpro from './sigpro.js';
export default sigpro; export default { ...sigpro, sigproRouter };