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:
Some upcoming features we are planning to add to this package are:
MappingBundle.spanForhandling of URIs that have a suffix that exactly match a source map in the MappingBundle.
MappingBundle.spanForto accept requests for output files that don't have source maps.
MappingBundleclass that handles extended source map format that supports source maps for multiple output files in a single mapper. Extend
Mapping.spanForAPI to accept a uri parameter that is optional for normal source maps but required for MappingBundle source maps.
mapUrlnamed argument to
parseJson. This argument is used to resolve source URLs for source spans.
SourceFileclasses. Use the corresponding
All methods that take
SourceFiles as inputs now
also accept the corresponding
source_span classes as well. Using the old
classes is now deprecated and will be unsupported in version 0.10.0.
sourceRootfield in the SingleMapping class.
targetUrlfield in the SingleMapping class.
Support unmapped areas in source maps.
Increase the readability of location messages.
Add this to your package's pubspec.yaml file:
dependencies: source_maps: "^0.10.4"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.10.4||Mar 23, 2017|
|0.10.3||Mar 7, 2017|
|0.10.2||Dec 14, 2016|
|0.10.1+5||Dec 12, 2016|
|0.10.1+4||Dec 9, 2016|
|0.10.1+3||Dec 8, 2016|
|0.10.1+2||Oct 31, 2016|
|0.10.1+1||Mar 24, 2016|
|0.10.1||Apr 29, 2015|
|0.10.0+2||Mar 28, 2015|
We analyzed this package, and provided a score, details, and suggestions below.
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, server, web
All libraries agree