@dyrected/nuxt 2.5.53 → 2.5.55

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": "@dyrected/nuxt",
3
3
  "configKey": "dyrected",
4
- "version": "2.5.53"
4
+ "version": "2.5.54"
5
5
  }
package/dist/module.mjs CHANGED
@@ -198,6 +198,20 @@ export default defineNitroPlugin(async (nitroApp) => {
198
198
  siteId: process.env.NUXT_PUBLIC_DYRECTED_SITE_ID || options.siteId || "default"
199
199
  };
200
200
  if (nuxt.options.vite) {
201
+ nuxt.options.vite.build = nuxt.options.vite.build || {};
202
+ nuxt.options.vite.build.rollupOptions = nuxt.options.vite.build.rollupOptions || {};
203
+ const originalOnwarn = nuxt.options.vite.build.rollupOptions.onwarn;
204
+ nuxt.options.vite.build.rollupOptions.onwarn = function(warning, defaultHandler) {
205
+ if (warning.code === "MODULE_LEVEL_DIRECTIVE")
206
+ return;
207
+ if (warning.message?.includes("Sourcemap is likely to be incorrect"))
208
+ return;
209
+ if (originalOnwarn) {
210
+ originalOnwarn.call(this, warning, defaultHandler);
211
+ } else {
212
+ defaultHandler(warning);
213
+ }
214
+ };
201
215
  const adminRequire = createRequire(_require.resolve("@dyrected/admin"));
202
216
  nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
203
217
  nuxt.options.vite.optimizeDeps.include = nuxt.options.vite.optimizeDeps.include || [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyrected/nuxt",
3
- "version": "2.5.53",
3
+ "version": "2.5.55",
4
4
  "type": "module",
5
5
  "main": "./dist/module.mjs",
6
6
  "types": "./dist/module.d.ts",
@@ -19,10 +19,10 @@
19
19
  "h3": "^1.15.0",
20
20
  "react": "^18.0.0 || ^19.0.0",
21
21
  "react-dom": "^18.0.0 || ^19.0.0",
22
- "@dyrected/core": "2.5.53",
23
- "@dyrected/sdk": "2.5.53",
24
- "@dyrected/admin": "2.5.53",
25
- "@dyrected/vue": "2.5.53"
22
+ "@dyrected/core": "2.5.55",
23
+ "@dyrected/sdk": "2.5.55",
24
+ "@dyrected/admin": "2.5.55",
25
+ "@dyrected/vue": "2.5.55"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "nuxt": "^3.0.0",