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.
sourceMappingURL
1 parent 1f0df7d commit 2735252Copy full SHA for 2735252
packages/bundler-plugin-core/src/debug-id-upload.ts
@@ -295,7 +295,7 @@ async function determineSourceMapPathFromBundle(
295
logger: Logger
296
): Promise<string | undefined> {
297
// 1. try to find source map at `sourceMappingURL` location
298
- const sourceMappingUrlMatch = bundleSource.match(/^\/\/# sourceMappingURL=(.*)$/);
+ const sourceMappingUrlMatch = bundleSource.match(/^\s*\/\/# sourceMappingURL=(.*)$/m);
299
if (sourceMappingUrlMatch) {
300
const sourceMappingUrl = path.normalize(sourceMappingUrlMatch[1] as string);
301
if (path.isAbsolute(sourceMappingUrl)) {
0 commit comments