Skip to content

Use NoOpImporter for compileString unless url is a file: url#1664

Closed
ntkme wants to merge 1 commit intosass:mainfrom
ntkme:no-op
Closed

Use NoOpImporter for compileString unless url is a file: url#1664
ntkme wants to merge 1 commit intosass:mainfrom
ntkme:no-op

Conversation

@ntkme
Copy link
Copy Markdown
Contributor

@ntkme ntkme commented Apr 6, 2022

@ntkme
Copy link
Copy Markdown
Contributor Author

ntkme commented Apr 7, 2022

I'm not familiar with dealing with JS Object in Dart so maybe there is a better way to write this.

@nex3
Copy link
Copy Markdown
Contributor

nex3 commented Apr 12, 2022

Is this change necessary? sass/sass-spec#1785 is already passing without it, because if url isn't a file: URL the default FilesystemImporter won't be able to resolve it anyway.

@ntkme
Copy link
Copy Markdown
Contributor Author

ntkme commented Apr 12, 2022

@nex3 Technically not because it is not going to resolve anyways. It was just for the sake of precisely matching what spec says.

@nex3
Copy link
Copy Markdown
Contributor

nex3 commented Apr 12, 2022

I think it's fine to leave as-is... the spec just mandates observable behavior, not necessarily the structure of code.

@nex3 nex3 closed this Apr 12, 2022
@ntkme ntkme deleted the no-op branch April 12, 2022 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants