From b4e8a74a50e8f4c61b76e46c991b40465b2548fc Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Wed, 21 Jun 2023 13:30:11 -0700 Subject: [PATCH] Use the new import name for the ESM default export (#2026) Closes #2024 --- CHANGELOG.md | 6 ++++++ pubspec.yaml | 2 +- tool/grind.dart | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd4a720e..7bca6ba3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.63.6 + +### JavaScript API + +* Fix `import sass from 'sass'` again after it was broken in the last release. + ## 1.63.5 ### JavaScript API diff --git a/pubspec.yaml b/pubspec.yaml index cbbfd5f9..7616bb5d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sass -version: 1.63.5 +version: 1.63.6-dev description: A Sass implementation in Dart. homepage: https://github.com/sass/dart-sass diff --git a/tool/grind.dart b/tool/grind.dart index 117e3894..3cbed31b 100644 --- a/tool/grind.dart +++ b/tool/grind.dart @@ -276,7 +276,7 @@ function defaultExportDeprecation() { buffer.write(""" get $export() { defaultExportDeprecation(); - return _cliPkgExports.$export; + return cjs.$export; }, """); }