Implement CanonicalizeRequest.from_import (#41)

See sass/sass#3055
See webpack-contrib/sass-loader#905
See sass/embedded-protocol#61
This commit is contained in:
Natalie Weizenbaum 2021-05-25 17:59:17 -07:00 committed by GitHub
parent 5d81f26f5d
commit 12c468004c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,4 @@
## 1.0.0-beta.8
* Internal changes only.
* Support version 1.0.0-beta.11 of the Sass embedded protocol:
* Set CanonicalizeRequest.from_import.

View File

@ -29,7 +29,8 @@ class Importer extends sass.Importer {
.sendCanonicalizeRequest(OutboundMessage_CanonicalizeRequest()
..compilationId = _compilationId
..importerId = _importerId
..url = url.toString());
..url = url.toString()
..fromImport = fromImport);
switch (response.whichResult()) {
case InboundMessage_CanonicalizeResponse_Result.url:

View File

@ -14,7 +14,7 @@ dependencies:
async: ">=1.13.0 <3.0.0"
meta: ^1.1.0
protobuf: ^2.0.0
sass: ^1.25.0
sass: ^1.33.0
source_maps: ^0.10.5
source_span: ^1.1.0
stack_trace: ^1.6.0