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

Custom importer not invoked when CompileRequest.Url points to a real file #24

@bep

Description

@bep

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",
					},
				},
			},
		}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions