Skip to content

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

Merged
nex3 merged 1 commit intosass:mainfrom
oddbird:hotfix-subpath-no-ext
Feb 22, 2024
Merged

[Hotfix Node Package Importer]- Handle subpath without extensions#3793
nex3 merged 1 commit intosass:mainfrom
oddbird:hotfix-subpath-no-ext

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.


* 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
@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.

3 participants