Skip to content

Commit 50415bc

Browse files
authored
Fix use on the web documentation to actually work
There are two fixes: The old path is no longer part of the dist folder. The new package that uses wasm requires the user to initialize the path to the lib for things to work.
1 parent 86d105b commit 50415bc

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)