-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcdn.ts
More file actions
20 lines (17 loc) · 713 Bytes
/
cdn.ts
File metadata and controls
20 lines (17 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// ---------------------------------------------------------------------------
// Sibu — CDN / IIFE bundle
// Self-registering build for <script> tag usage without a bundler.
//
// Usage:
// <script src="https://unpkg.com/sibujs@latest/dist/sibu.global.js"></script>
// <script>
// const { signal, effect, div, mount } = window.Sibu;
// </script>
// ---------------------------------------------------------------------------
import * as core from "./index";
// Auto-register on window when loaded via <script> tag
if (typeof window !== "undefined") {
(window as unknown as Record<string, unknown>).Sibu = core;
}
// Also export everything for ESM consumers of this file
export * from "./index";