From 9f3f57cd197197fc731c3647f453e9702505624d Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Thu, 13 May 2021 18:45:11 -0700 Subject: [PATCH] Add a CanonicalizeRequest.fromImport field See sass/sass#3055 See webpack-contrib/sass-loader#905 --- embedded_sass.proto | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/embedded_sass.proto b/embedded_sass.proto index c3694ab..6106f83 100644 --- a/embedded_sass.proto +++ b/embedded_sass.proto @@ -432,6 +432,16 @@ message OutboundMessage { // each importer in order until one returns something other than `null`. // That is the result of the import. string url = 4; + + /// Whether this request comes from an `@import` rule. + /// + /// When evaluating `@import` rules, URLs should canonicalize to an + /// [import-only file] if one exists for the URL being canonicalized. + /// Otherwise, canonicalization should be identical for `@import` and `@use` + /// rules. + /// + /// [import-only file]: https://sass-lang.com/documentation/at-rules/import#import-only-files + bool fromImport = 5; } // A request for a custom importer to load the contents of a stylesheet.