From a30d9ca8009126de21b535e69af39ecbc78a51c5 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Wed, 21 Jun 2023 13:18:36 -0700 Subject: [PATCH] Use the new import name for the ESM default export 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 dd4a720e3..7bca6ba36 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 cbbfd5f90..7616bb5d3 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 117e38946..3cbed31bb 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; }, """); }