dart-sass/test/cli
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
..
dart Run the Dart CLI tests from app snapshots on CI (#383) 2018-06-27 13:12:16 -07:00
node Add a --watch command 2018-06-09 14:13:36 -04:00
shared Fix embedding source maps with non-ASCII characters (#471) 2018-09-11 12:13:43 -07:00
dart_test.dart Run snapshots in Dart 1 mode 2018-06-27 15:51:16 -07:00
node_test.dart Remove the workaround for dart-lang/sdk#30098 2018-06-14 16:15:27 -07:00
shared.dart Fix an import-resolution bug (#488) 2018-10-11 15:06:26 -07:00