-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
10 changed files
with
191 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: sass | ||
version: 1.14.2-dev | ||
version: 1.14.2 | ||
description: A Sass implementation in Dart. | ||
author: Dart Team <[email protected]> | ||
homepage: https://github.com/sass/dart-sass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.