@hostlink/nuxt-light 1.10.4 → 1.10.5

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/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.10.4"
4
+ "version": "1.10.5"
5
5
  }
package/dist/module.mjs CHANGED
@@ -57,9 +57,7 @@ const module = defineNuxtModule({
57
57
  { name: "LightModelField", from, type: true },
58
58
  { name: "LightModel", from, type: true }
59
59
  ]);
60
- addVitePlugin(quasar({
61
- runMode: "web-client"
62
- }));
60
+ addVitePlugin(quasar());
63
61
  const files = await resolveFiles(process.cwd() + "/models", ["*"]);
64
62
  nuxt.options.runtimeConfig.public.light = {
65
63
  model: []
@@ -76,6 +74,27 @@ const module = defineNuxtModule({
76
74
  src: resolver.resolve("./runtime/plugin"),
77
75
  mode: "client"
78
76
  });
77
+ nuxt.hook("vite:extendConfig", (config) => {
78
+ config.define = {
79
+ ...config.define,
80
+ __QUASAR_SSR__: false,
81
+ __QUASAR_SSR_SERVER__: false,
82
+ __QUASAR_SSR_CLIENT__: false,
83
+ __QUASAR_SSR_PWA__: false
84
+ };
85
+ });
86
+ nuxt.hook("nitro:config", async (config) => {
87
+ config.replace = {
88
+ ...config.replace,
89
+ __QUASAR_SSR__: false,
90
+ __QUASAR_SSR_SERVER__: false,
91
+ __QUASAR_SSR_CLIENT__: false,
92
+ __QUASAR_SSR_PWA__: false
93
+ };
94
+ config.externals ??= {};
95
+ config.externals.inline ??= [];
96
+ config.externals.inline.push("quasar");
97
+ });
79
98
  }
80
99
  });
81
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.10.4",
3
+ "version": "1.10.5",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",