From fd67fe678c92d1e646bbbb2a57a0a5d3cf89e8ca Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Mon, 4 Mar 2024 20:30:54 -0500 Subject: [PATCH] [Hotfix Node Package Importer]- Handle subpath without extensions (#2184) Co-authored-by: Natalie Weizenbaum --- CHANGELOG.md | 5 +++++ lib/src/importer/node_package.dart | 1 + pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ddf9cbc85..1eb735f4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/src/importer/node_package.dart b/lib/src/importer/node_package.dart index 5a81baf3b..d621ccf94 100644 --- a/lib/src/importer/node_package.dart +++ b/lib/src/importer/node_package.dart @@ -354,6 +354,7 @@ class NodePackageImporter extends Importer { paths.add(subpath); } else { paths.addAll([ + subpath, '$subpath.scss', '$subpath.sass', '$subpath.css', diff --git a/pubspec.yaml b/pubspec.yaml index 35c938efb..3105413b4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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