dart-sass/pubspec.yaml
Natalie Weizenbaum 0595ac3e71
Fix an import-resolution bug (#488)
When a stylesheet is imported, the parsed stylesheet object is cached
based on its canonical URL. However, the stylesheet.span.sourceUrl was
based on the text of the import that was used to load that stylesheet.
The idea was to make the source URL in stack traces look nicer, but it
meant that relative URLs could be resolved based on the old importer's
URL before being sent to the new importer, which caused bugs.

Now stylesheet.span.sourceUrl is always the canonical URL of the
stylesheet, and thus safe to cache. We then use the import cache to
convert the canonical URL to a human-friendly URL at the point at
which we generate stack traces.

This also deprecates support for relative canonical URLs. The
semantics of these URLs were always unclear, and with the new change
in import internals the old behavior doesn't make much sense. It's
preserved for backwards-compatibility, but deprecated.
2018-10-11 15:06:26 -07:00

47 lines
1022 B
YAML

name: sass
version: 1.14.2
description: A Sass implementation in Dart.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/sass/dart-sass
executables:
dart-sass: sass
environment:
sdk: '>=1.25.0-dev.64.0 <3.0.0'
dependencies:
args: ">=1.4.0 <2.0.0"
async: ">=1.10.0 <3.0.0"
charcode: "^1.1.0"
cli_repl: ">=0.1.3 <0.3.0"
collection: "^1.8.0"
convert: "^2.0.1"
meta: "^1.1.0"
package_resolver: "^1.0.0"
path: "^1.6.0"
source_maps: "^0.10.5"
source_span: "^1.4.0"
stack_trace: ">=0.9.0 <2.0.0"
stream_transform: "^0.0.1"
string_scanner: ">=0.1.5 <2.0.0"
tuple: "^1.0.0"
watcher: "^0.9.6"
dev_dependencies:
archive: ">=1.0.0 <3.0.0"
analyzer: ">=0.30.0 <0.33.0"
crypto: ">=0.9.2 <3.0.0"
dart_style: "^1.0.0"
grinder: "^0.8.0"
http: "^0.11.0"
js: "^0.6.0"
node_preamble: "^1.1.0"
pub_semver: "^1.0.0"
stream_channel: "^1.0.0"
test_descriptor: "^1.1.0"
test_process: "^1.0.0-rc.1"
test: ">=0.12.42 <2.0.0"
xml: ">=2.4.0 <4.0.0"
yaml: "^2.0.0"