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:
<3.0.0, and adjust other dependencies.
SingleMapping.files field which provides access to
"sourcesContent" fields in the source map.
includeSourceContents flag to
indicates whether to include source file contents in the source map.
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.7
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.10.7||Jul 17, 2018|
|0.10.6||Jun 26, 2018|
|0.10.5||Apr 25, 2018|
|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|
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]
We analyzed this package on Aug 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, web, other
No platform restriction found in primary library
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction of the API.
Maintain an example.
Create a short demo in the
example/ directory to show how to use this package. Common file name patterns include:
example.dart or you could also use