This repository was archived by the owner on May 15, 2023. It is now read-only.

Description
I'm not sure if this repo is the right one, but here you go:
- I fill out the
Url in the request mainly to get a correct source map
- When this
Url points to an existing file, the custom importers defined is not invoked
- My current workaround is to put a dummy value as a placeholder here and then replace that in the source map I get-
This is tested with beta 5.
message := &embeddedsass.InboundMessage_CompileRequest_{
CompileRequest: &embeddedsass.InboundMessage_CompileRequest{
Importers: customImporters,
Input: &embeddedsass.InboundMessage_CompileRequest_String_{
String_: &embeddedsass.InboundMessage_CompileRequest_StringInput{
Source: "@import \"colors;\"",
Url: "file:///styles/main.scss",
},
},
},
}