source-map-sharp
source-map-sharp copied to clipboard
https://github.com/mozilla/source-map for .NET, re-written in F#
Source Map Sharp
About
This is a direct rewrite (meaning, the goal was not to write 'idiomatic' F# code, but to resemble inital JS code as close as possible) of source map generation tool https://github.com/mozilla/source-map
Which is originally written in JS. The initial purpose is to use it with https://github.com/fable-compiler/Fable project
See https://github.com/fable-compiler/Fable/issues/2166 - "Bring back source map support"
UPD: The issue above was closed, and this project is now being used by Fable to generated Source Maps. Hooray!
Current support status
- Fable - working fine
- .NET - working fine
Running tests
dotnet:
dotnet test
Fable (js):
dotnet tool restore
pnpm install
pnpm test
Files - status
Legend:
๐ - Everything fine
๐คจ - Everything fine except minor details (or not important right now details)
๐ด - Not needed / won't do
๐จ - Should be done, but isn't
๐คฏ - Done but no tested
- ๐
ArraySet- Done & tested - ๐
Base64- Done & tested - ๐
Base64-vlq- Done & tested - ๐ด
binary-search- Not done, probably won't need - ๐คจ
mapping-list- Done, not tested specifically, coverage shows 95% via other tessts - ๐ด
mapping.wasm- Not done, probably won't need - ๐ด
read-wasm-browser- Not done, probably won't need - ๐ด
read-wasm- Not done, probably won't need - ๐จ
source-map-consumer- Not done, Don't know if will need it or not at the moment - ๐
source-map-generator- Done except theconsumerparts, tested exceptconsumerparts - ๐
source-node- Done except theconsumerparts, tested exceptconsumerparts - ๐ด
url-browser- Not done, probably won't need - ๐ด
url- Not done, probably won't need - ๐คจ
util- Done partially, what's needed - ๐ด
wasm- Not done, probably won't need
"SourceMapConsumer"-related stuff
Not done at the moment:
- SourceNode
fromStringWithSourceMapfunction - SourceMapGenerator
fromSourceMapfunction - SourceMapConsumer module
- SourceMapNode, SourceMapGenerator -
consumer-related tests
Help needed
- Source map consumer
- Documentation & usage examples
- Decisions on WASM stuff - Rust repo https://github.com/fitzgen/source-map-mappings