Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
Add a CanonicalizeRequest.fromImport field
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed May 14, 2021
1 parent 0cea438 commit 9f3f57c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions embedded_sass.proto
Expand Up @@ -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.
Expand Down

0 comments on commit 9f3f57c

Please sign in to comment.