@htlkg/astro 0.0.11 → 0.0.13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htlkg/astro",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -19,8 +19,15 @@ import LoginForm from "./LoginForm.vue";
19
19
 
20
20
  export const prerender = false;
21
21
 
22
- // Get configuration from virtual module
23
- const { loginPageConfig } = await import("virtual:htlkg-config");
22
+ // Lazy load configuration to avoid build-time evaluation
23
+ let loginPageConfig;
24
+ try {
25
+ const config = await import("virtual:htlkg-config");
26
+ loginPageConfig = config.loginPageConfig;
27
+ } catch (e) {
28
+ // During build analysis, virtual modules may not be available
29
+ loginPageConfig = null;
30
+ }
24
31
 
25
32
  const {
26
33
  logo = "https://images.hotelinking.com/ui/WiFiBot.svg",