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

[Hotfix Node Package Importer]- Handle subpath without extensions #3793

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

jamesnw
Copy link
Contributor

@jamesnw jamesnw commented Feb 22, 2024

sass/dart-sass#2183

Adds subpath to the list of export load paths.

dart-sass- sass/dart-sass#2184
sass-spec- sass/sass-spec#1960

@jamesnw jamesnw requested a review from nex3 February 22, 2024 19:15
@jamesnw
Copy link
Contributor Author

jamesnw commented Feb 22, 2024

@nex3 Let me know if there is more process (proposal, draft, etc) needed, or if this qualifies as a fast track fix.

@@ -554,8 +554,8 @@ potential subpaths, resolving for partials and file extensions.

* Add `subpath` to `paths`.

* Otherwise, add `subpath` + `.scss`, `subpath` + `.sass`, and `subpath` +
`.css` to `paths`.
* Otherwise, add `subpath`, `subpath` + `.scss`, `subpath` + `.sass`, and
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should make it explicit to only add the extensions when it's not specified. If it already has an extension (.scss, .sass, or .css), we should not try add another.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is cut off in this snippet, but the preceding lines contain an "if it has an extension", and this is the else.

* If `subpath` ends in `.scss`, `.sass`, or `.css`:

  * Add `subpath` to `paths`.

* Otherwise...

@nex3 nex3 merged commit accea3f into sass:main Feb 22, 2024
9 checks passed
@jgerigmeyer jgerigmeyer deleted the hotfix-subpath-no-ext branch February 23, 2024 16:40
nex3 pushed a commit that referenced this pull request Mar 27, 2024
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.

None yet

3 participants