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 4edd97d commit 0ed2b31Copy full SHA for 0ed2b31
packages/bundle-size-checker/src/viteBuilder.js
@@ -221,14 +221,9 @@ export async function getViteSizes(entry, args) {
221
const { configuration } = await createViteConfig(entry, args);
222
const outDir = path.join(rootDir, 'build', entry.id);
223
224
- try {
225
- // Run vite build
226
- await build(configuration);
227
-
228
- // Process the output to get bundle sizes
229
- return processBundleSizes(outDir, entry.id);
230
- } catch (error) {
231
- console.error(`Error building ${entry.id} with vite:`, error);
232
- throw error;
233
- }
+ // Run vite build
+ await build(configuration);
+
+ // Process the output to get bundle sizes
+ return processBundleSizes(outDir, entry.id);
234
}
0 commit comments