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||failed|
|0.10.1||Apr 29, 2015||failed|
|0.10.0+2||Mar 28, 2015||failed|
We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
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, 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 API.
Fix analysis and formatting issues.
Analysis or formatting checks reported 7 hints.
Strong-mode analysis of
lib/parser.dartgave the following hint:
line: 28 col: 15
'JSON' is deprecated and shouldn't be used.
Similar analysis of the following files failed:
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use