@hostlink/nuxt-light 1.10.11 → 1.10.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/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.10.11"
4
+ "version": "1.10.13"
5
5
  }
package/dist/module.mjs CHANGED
@@ -13,7 +13,8 @@ const module = defineNuxtModule({
13
13
  async setup(options, nuxt) {
14
14
  const resolver = createResolver(import.meta.url);
15
15
  const { resolve: resolveQuasar } = createResolver(dirname(await resolvePath("quasar/package.json")));
16
- const { version: quasarVersion } = JSON.parse(await readFile(resolveQuasar("package.json"), "utf-8"));
16
+ 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");
@@ -79,37 +80,16 @@ const module = defineNuxtModule({
79
80
  mode: "client"
80
81
  });
81
82
  nuxt.hook("vite:extendConfig", (config) => {
82
- config.optimizeDeps ??= {};
83
- config.optimizeDeps.exclude ??= [];
84
- config.optimizeDeps.exclude.push("quasar");
85
83
  config.plugins ??= [];
86
84
  config.plugins.push(
87
85
  virtualQuasarEntryPlugin({
88
86
  resolveQuasar,
89
- dev: nuxt.options.dev
87
+ dev: nuxt.options.dev,
88
+ imports: {
89
+ raw: importMap
90
+ }
90
91
  })
91
92
  );
92
- config.define = {
93
- ...config.define,
94
- __QUASAR_VERSION__: `'${quasarVersion}'`,
95
- __QUASAR_SSR__: false,
96
- __QUASAR_SSR_SERVER__: false,
97
- __QUASAR_SSR_CLIENT__: false,
98
- __QUASAR_SSR_PWA__: false
99
- };
100
- });
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
93
  });
114
94
  }
115
95
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.10.11",
3
+ "version": "1.10.13",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",