Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from
Closed

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

wants to merge 1 commit into from

Conversation

ntkme
Copy link
Contributor

@ntkme ntkme commented Apr 6, 2022

@ntkme
Copy link
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
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
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
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