baraqex 1.0.42 → 1.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,8 +25,25 @@ await build({
25
25
  'fs',
26
26
  'path',
27
27
  'http',
28
- 'https'
29
- ]
28
+ 'https',
29
+ // Add Node.js built-ins that should be excluded from browser
30
+ 'url',
31
+ 'util',
32
+ 'stream',
33
+ 'buffer',
34
+ 'events',
35
+ 'querystring',
36
+ 'os',
37
+ 'child_process',
38
+ 'cluster',
39
+ 'net',
40
+ 'tls',
41
+ 'dns'
42
+ ],
43
+ alias: {
44
+ // Map baraqex to the browser version
45
+ 'baraqex': 'baraqex/browser'
46
+ }
30
47
  });
31
48
 
32
49
  // Build server - use full baraqex with server capabilities
@@ -0,0 +1,35 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Frontend Hamroun SSR Template</title>
7
+ <meta name="description" content="Server-side rendered Frontend Hamroun application">
8
+ <style>
9
+ body {
10
+ margin: 0;
11
+ padding: 0;
12
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
13
+ }
14
+ #app-root {
15
+ min-height: 100vh;
16
+ }
17
+ .loading {
18
+ display: flex;
19
+ justify-content: center;
20
+ align-items: center;
21
+ min-height: 100vh;
22
+ font-size: 1.2rem;
23
+ }
24
+ </style>
25
+ </head>
26
+ <body>
27
+ <div id="app-root" data-ssr-root="true">
28
+ <div class="loading">
29
+ <div>Loading Frontend Hamroun App...</div>
30
+ </div>
31
+ </div>
32
+ <script src="/client.js" type="module" defer></script>
33
+ <script id="__APP_DATA__" type="application/json">{}</script>
34
+ </body>
35
+ </html>