@merkaly/nuxt 0.1.13 → 0.1.15
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 -8
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, addPlugin, addRouteMiddleware, addImportsDir, addComponentsDir } from '@nuxt/kit';
|
|
1
|
+
import { defineNuxtModule, createResolver, useLogger, addPlugin, addRouteMiddleware, addImportsDir, addComponentsDir } from '@nuxt/kit';
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
3
|
import svgLoader from 'vite-svg-loader';
|
|
4
4
|
|
|
@@ -100,14 +100,14 @@ const module = defineNuxtModule({
|
|
|
100
100
|
// ✅ Solo en producción
|
|
101
101
|
ignoredHostnames: ["localhost"].concat(options.plausible?.localhost || "").filter(Boolean)
|
|
102
102
|
}, nuxt.options.plausible || {});
|
|
103
|
+
const logger = useLogger("@merkaly/nuxt");
|
|
103
104
|
const bootstrapConfigPath = rootResolver.resolve("bootstrap.config.ts");
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
105
|
+
logger.info(`Loading bootstrap.config.ts from: ${bootstrapConfigPath} (exists: ${existsSync(bootstrapConfigPath)})`);
|
|
106
|
+
const BootstrapConfig = await import(bootstrapConfigPath).then((m) => m.default || {}).catch((err) => {
|
|
107
|
+
logger.error(`Failed to load bootstrap.config.ts:`, err.message);
|
|
108
|
+
return {};
|
|
109
|
+
});
|
|
110
|
+
logger.info(`Bootstrap config keys: ${Object.keys(BootstrapConfig).join(", ") || "(empty)"}`);
|
|
111
111
|
nuxt.options["bootstrapVueNext"] = defu(nuxt.options["bootstrapVueNext"] || {}, { plugin: { components: BootstrapConfig } });
|
|
112
112
|
addPlugin({ src: moduleResolver.resolve("./runtime/plugins/api.global") });
|
|
113
113
|
addPlugin({ src: moduleResolver.resolve("./runtime/plugins/auth0.client"), mode: "client" });
|