@nuxt/webpack-builder-nightly 5.0.0-29662437.89c933ea → 5.0.0-29664396.5668d45c

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.
Files changed (2) hide show
  1. package/dist/index.mjs +10 -1
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -1545,8 +1545,17 @@ async function compile(compiler) {
1545
1545
  }
1546
1546
  const stats = await new Promise((resolve, reject) => compiler.run((err, stats) => err ? reject(err) : resolve(stats)));
1547
1547
  if (stats.hasErrors()) {
1548
+ const formatted = stats.toString({
1549
+ errors: true,
1550
+ warnings: false,
1551
+ colors: false,
1552
+ errorDetails: true
1553
+ });
1554
+ const compilationErrors = stats.compilation?.errors ?? [];
1555
+ logger.error(formatted || "(no formatted errors emitted; see compilation errors below)");
1556
+ for (const err of compilationErrors) logger.error(err);
1548
1557
  const error = /* @__PURE__ */ new Error("Nuxt build error");
1549
- error.stack = stats.toString("errors-only");
1558
+ error.stack = formatted || compilationErrors.map((e) => e.stack || e.message || String(e)).join("\n\n") || error.stack;
1550
1559
  throw error;
1551
1560
  }
1552
1561
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/webpack-builder-nightly",
3
- "version": "5.0.0-29662437.89c933ea",
3
+ "version": "5.0.0-29664396.5668d45c",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@nuxt/friendly-errors-webpack-plugin": "^2.6.0",
29
- "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29662437.89c933ea",
29
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29664396.5668d45c",
30
30
  "@vue/compiler-sfc": "3.5.34",
31
31
  "autoprefixer": "^10.5.0",
32
32
  "css-loader": "^7.1.4",
@@ -69,7 +69,7 @@
69
69
  "webpackbar": "^7.0.0"
70
70
  },
71
71
  "devDependencies": {
72
- "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29662437.89c933ea",
72
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29664396.5668d45c",
73
73
  "@rspack/core": "2.0.4",
74
74
  "@types/webpack-bundle-analyzer": "4.7.0",
75
75
  "@types/webpack-hot-middleware": "2.25.12",
@@ -80,7 +80,7 @@
80
80
  "vue": "3.5.34"
81
81
  },
82
82
  "peerDependencies": {
83
- "nuxt": "npm:nuxt-nightly@5.0.0-29662437.89c933ea",
83
+ "nuxt": "npm:nuxt-nightly@5.0.0-29664396.5668d45c",
84
84
  "vue": "^3.3.4"
85
85
  },
86
86
  "engines": {