Skip to content

Commit 3d9d70e

Browse files
committed
sourcemap tools: add semicolon to end of source snippet in DebugIdGenerator
1 parent 53893a7 commit 3d9d70e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/sourcemap-tools/src/DebugIdGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const SOURCEMAP_DEBUG_ID_KEY = 'debugId';
44

55
export class DebugIdGenerator {
66
public generateSourceSnippet(uuid: string) {
7-
return `;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e.${SOURCE_DEBUG_ID_VARIABLE}=e.${SOURCE_DEBUG_ID_VARIABLE}||{},e.${SOURCE_DEBUG_ID_VARIABLE}[n]="${uuid}")}catch(e){}}()`;
7+
return `;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e.${SOURCE_DEBUG_ID_VARIABLE}=e.${SOURCE_DEBUG_ID_VARIABLE}||{},e.${SOURCE_DEBUG_ID_VARIABLE}[n]="${uuid}")}catch(e){}}();`;
88
}
99

1010
public generateSourceComment(uuid: string) {

0 commit comments

Comments
 (0)