Skip to content

Commit 04a942a

Browse files
author
Luca Forstner
authored
ref: Improve log message when sourcemap cannot be found (#287)
1 parent b504b31 commit 04a942a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/bundler-plugin-core/src/debug-id-upload.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ async function determineSourceMapPathFromBundle(
249249
}
250250

251251
// This is just a debug message because it can be quite spammy for some frameworks
252-
logger.debug(`Could not determine source map path for bundle: ${bundlePath}`);
252+
logger.debug(
253+
`Could not determine source map path for bundle: ${bundlePath} - Did you turn on source map generation in your bundler?`
254+
);
253255
return undefined;
254256
}
255257

0 commit comments

Comments
 (0)