Skip to content

Commit

Permalink
$mol_sourcemap strip dataurls
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Dec 16, 2023
1 parent b4d1b44 commit e06f089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sourcemap/sourcemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ namespace $ {
}

export function $mol_sourcemap_strip(this: $, data: string) {
return data.replace( /^\/\/#\s*sourceMappingURL=/mg , '//' ) + '\n'
return data.replace( /^\/\/#\s*sourceMappingURL=[^\n]*/mg , '' ) + '\n'
}
}

0 comments on commit e06f089

Please sign in to comment.