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 fable-compiler/Fable#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!
- Fable - working fine
- .NET - working fine
dotnet:
dotnet test
Fable (js):
dotnet tool restore
pnpm install
pnpm test
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 theconsumer
parts, tested exceptconsumer
parts - 😊
source-node
- Done except theconsumer
parts, tested exceptconsumer
parts - 😴
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
Not done at the moment:
- SourceNode
fromStringWithSourceMap
function - SourceMapGenerator
fromSourceMap
function - SourceMapConsumer module
- SourceMapNode, SourceMapGenerator -
consumer
-related tests
- Source map consumer
- Documentation & usage examples
- Decisions on WASM stuff - Rust repo https://github.com/fitzgen/source-map-mappings