We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 597e263 commit 755a450Copy full SHA for 755a450
packages/plugin/webpack/src/WebpackPlugin.ts
@@ -277,9 +277,13 @@ Your packaged app may be larger than expected if you dont ignore everything othe
277
for (const entryPoint of this.config.renderer.entryPoints) {
278
if (entryPoint.preload) {
279
await asyncOra(`Compiling Renderer Preload: ${entryPoint.name}`, async () => {
280
- await this.runWebpack(
+ const stats = await this.runWebpack(
281
await this.configGenerator.getPreloadRendererConfig(entryPoint, entryPoint.preload!),
282
);
283
+
284
+ if (stats?.hasErrors()) {
285
+ throw new Error(`Compilation errors in the preload (${entryPoint.name}): ${stats.toString()}`);
286
+ }
287
});
288
}
289
0 commit comments