Skip to content

Commit

Permalink
[Hotfix Node Package Importer]- Handle subpath without extensions (#2184
Browse files Browse the repository at this point in the history
)

Co-authored-by: Natalie Weizenbaum <[email protected]>
  • Loading branch information
jamesnw and nex3 authored Mar 5, 2024
1 parent 1b4d703 commit fd67fe6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.72.0

* Allow the Node.js `pkg:` importer to load Sass stylesheets for `package.json`
`exports` field entries without extensions.

## 1.71.1

### Command-Line Interface
Expand Down
1 change: 1 addition & 0 deletions lib/src/importer/node_package.dart
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ class NodePackageImporter extends Importer {
paths.add(subpath);
} else {
paths.addAll([
subpath,
'$subpath.scss',
'$subpath.sass',
'$subpath.css',
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass
version: 1.71.1
version: 1.72.0-dev
description: A Sass implementation in Dart.
homepage: https://github.com/sass/dart-sass

Expand Down

0 comments on commit fd67fe6

Please sign in to comment.