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

Don't read file if Node importer returns file and contents. #991

Merged
merged 1 commit into from
Apr 29, 2020

Conversation

Awjin
Copy link
Contributor

@Awjin Awjin commented Apr 25, 2020

Instead, use contents with file as the canonical url.

Closes #975.

Instead, use `contents` with `file` as the canonical url.

Closes #975.
@Awjin Awjin force-pushed the node-importer-file-and-contents branch from a709a96 to 21a1c58 Compare April 25, 2020 00:38
@Awjin Awjin requested a review from nex3 April 25, 2020 01:13
@Awjin
Copy link
Contributor Author

Awjin commented Apr 29, 2020

@nex3 For context, this is equivalent to the behavior implemented in libsass: https://github.com/sass/libsass/blob/master/src/context.cpp#L448

Copy link
Contributor

@nex3 nex3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Can you add a changelog entry and bump the pubspec if necessary as well?

@Awjin
Copy link
Contributor Author

Awjin commented Apr 29, 2020

Looks good! Can you add a changelog entry and bump the pubspec if necessary as well?

Sure thing, slotted this under 1.26.6

@Awjin Awjin merged commit 39358fb into master Apr 29, 2020
@Awjin Awjin deleted the node-importer-file-and-contents branch April 29, 2020 22:58
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.

[node-sass incompatibility] Importers that return both file and contents keys.
2 participants