@hostlink/nuxt-light 1.17.1 → 1.18.1
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 +1 -1
- package/dist/module.mjs +8 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -246,6 +246,14 @@ const module = defineNuxtModule({
|
|
|
246
246
|
}
|
|
247
247
|
},
|
|
248
248
|
async setup(options, nuxt) {
|
|
249
|
+
nuxt.options.imports = nuxt.options.imports || {};
|
|
250
|
+
nuxt.options.imports.presets = nuxt.options.imports.presets || [];
|
|
251
|
+
nuxt.options.imports.presets.push({ from: "quasar", imports: ["useQuasar"] });
|
|
252
|
+
nuxt.options.vite = nuxt.options.vite || {};
|
|
253
|
+
nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
|
|
254
|
+
nuxt.options.vite.optimizeDeps.include = nuxt.options.vite.optimizeDeps.include || [];
|
|
255
|
+
nuxt.options.vite.optimizeDeps.include.push("axios");
|
|
256
|
+
nuxt.options.vite.optimizeDeps.include.push("json-to-graphql-query");
|
|
249
257
|
const resolver = createResolver(import.meta.url);
|
|
250
258
|
const { resolve: resolveQuasar } = createResolver(dirname(await resolvePath("quasar/package.json")));
|
|
251
259
|
const importMap = JSON.parse(await await readFile(resolveQuasar("dist/transforms/import-map.json"), "utf-8"));
|