Skip to content

Commit d152edf

Browse files
committed
If bundle require fails in prod builds, log the error
1 parent 092465e commit d152edf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/start.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function maybeBundleImport<T>(moduleName: string): T {
1919
try {
2020
return require('../../bundle/' + moduleName);
2121
} catch (e) {
22+
console.log(e);
2223
// Fallback (bundle is included in real package)
2324
console.log(`Could not load bundle ${moduleName}, loading raw`);
2425
return require('../' + moduleName);

0 commit comments

Comments
 (0)