Skip to content

Commit 6c4e879

Browse files
authored
Merge pull request #312 from samccone/patch-1
🐒 Fix use on the web documentation to actually work
2 parents 86d105b + 50415bc commit 6c4e879

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ This is a library to generate and consume the source map format
1515

1616
## Use on the Web
1717

18-
<script src="https://raw.githubusercontent.com/mozilla/source-map/master/dist/source-map.min.js" defer></script>
18+
<script src="https://unpkg.com/[email protected]/dist/source-map.js"></script>
19+
<script>
20+
sourceMap.SourceMapConsumer.initialize({
21+
"lib/mappings.wasm": "https://unpkg.com/[email protected]/lib/mappings.wasm"
22+
});
23+
</script>
1924

2025
--------------------------------------------------------------------------------
2126

0 commit comments

Comments
 (0)