Skip to content

Commit 0ed2b31

Browse files
committed
Update viteBuilder.js
1 parent 4edd97d commit 0ed2b31

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

packages/bundle-size-checker/src/viteBuilder.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,9 @@ export async function getViteSizes(entry, args) {
221221
const { configuration } = await createViteConfig(entry, args);
222222
const outDir = path.join(rootDir, 'build', entry.id);
223223

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-
}
224+
// Run vite build
225+
await build(configuration);
226+
227+
// Process the output to get bundle sizes
228+
return processBundleSizes(outDir, entry.id);
234229
}

0 commit comments

Comments
 (0)