@hostlink/nuxt-light 1.10.10 → 1.10.12

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.10"
4
+ "version": "1.10.12"
5
5
  }
package/dist/module.mjs CHANGED
@@ -14,6 +14,7 @@ const module = defineNuxtModule({
14
14
  const resolver = createResolver(import.meta.url);
15
15
  const { resolve: resolveQuasar } = createResolver(dirname(await resolvePath("quasar/package.json")));
16
16
  const { version: quasarVersion } = JSON.parse(await readFile(resolveQuasar("package.json"), "utf-8"));
17
+ const importMap = JSON.parse(await await readFile(resolveQuasar("dist/transforms/import-map.json"), "utf-8"));
17
18
  nuxt.options.css.push("quasar/dist/quasar.prod.css");
18
19
  nuxt.options.css.push("@quasar/extras/material-icons/material-icons.css");
19
20
  nuxt.options.css.push("@quasar/extras/material-icons-outlined/material-icons-outlined.css");
@@ -86,7 +87,10 @@ const module = defineNuxtModule({
86
87
  config.plugins.push(
87
88
  virtualQuasarEntryPlugin({
88
89
  resolveQuasar,
89
- dev: nuxt.options.dev
90
+ dev: nuxt.options.dev,
91
+ imports: {
92
+ raw: importMap
93
+ }
90
94
  })
91
95
  );
92
96
  config.define = {
@@ -98,19 +102,6 @@ const module = defineNuxtModule({
98
102
  __QUASAR_SSR_PWA__: false
99
103
  };
100
104
  });
101
- nuxt.hook("nitro:config", async (config) => {
102
- config.replace = {
103
- ...config.replace,
104
- __QUASAR_VERSION__: `'${quasarVersion}'`,
105
- __QUASAR_SSR__: false,
106
- __QUASAR_SSR_SERVER__: true,
107
- __QUASAR_SSR_CLIENT__: false,
108
- __QUASAR_SSR_PWA__: false
109
- };
110
- config.externals ??= {};
111
- config.externals.inline ??= [];
112
- config.externals.inline.push("quasar");
113
- });
114
105
  }
115
106
  });
116
107
  function virtualQuasarEntryPlugin(context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.10.10",
3
+ "version": "1.10.12",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",