Clone this repo:
  1. 23c17a2 Preserve source-map extensions in SingleMapping (#31) by sigmundch · 8 weeks ago master 0.10.8
  2. 8af7cc1 chore: set max SDK version to <3.0.0 (#30) by Patrice Chalin · 4 months ago 0.10.7
  3. f6015c3 Prepare to publish 0.10.6 (#29) by sigmundch · 5 months ago 0.10.6
  4. dacf181 Remove upper case constants (#27) by Lasse R.H. Nielsen · 6 months ago
  5. 28eb6b8 Add support for the sourcesContent field (#28) by Natalie Weizenbaum · 7 months ago 0.10.5

Source Maps

This project implements a Dart pub package to work with source maps. The implementation is based on the source map version 3 spec which was originated from the Closure Compiler and has been implemented in Chrome and Firefox.

In this package we provide:

  • Data types defining file locations and spans: these are not part of the original source map specification. These data types are great for tracking source locations on source maps, but they can also be used by tools to reporting useful error messages that include on source locations.
  • A builder that creates a source map programatically and produces the encoded source map format.
  • A parser that reads the source map format and provides APIs to read the mapping information.

Some upcoming features we are planning to add to this package are:

  • A printer that lets you generate code, but record source map information in the process.
  • A tool that can compose source maps together. This would be useful for instance, if you have 2 tools that produce source maps and you call one with the result of the other.