From 53aae15d6e1f02d93fbb0819b490e91dce8c9fce Mon Sep 17 00:00:00 2001
From: Zac Lovoy <zwlovoy@gmail.com>
Date: Thu, 10 Oct 2024 10:22:12 -0700
Subject: [PATCH] Added ./dist/translations directory to exports to allow
 dynamic importing of directory contents (#2210)

* Added ./dist/translations directory to exports to allow dynamic importing of directory contents

* add changelog entry

* prettier

---------

Co-authored-by: konnorrogers <konnor5456@gmail.com>
---
 docs/pages/resources/changelog.md | 1 +
 package.json                      | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/docs/pages/resources/changelog.md b/docs/pages/resources/changelog.md
index 51c50b0e..584b751d 100644
--- a/docs/pages/resources/changelog.md
+++ b/docs/pages/resources/changelog.md
@@ -15,6 +15,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
 ## Next
 
 - Added Finnish translations [#2211]
+- Fixed a bug with certain bundlers when using dynamic imports [#2210]
 - Fixed a bug in `<sl-textarea>` causing scroll jumping when using `resize="auto"` [#2182]
 - Fixed a bug in `<sl-relative-time>` where the title attribute would show with redundant info [#2184]
 - Fixed a bug in `<sl-select>` that caused multi-selects without placeholders to have the wrong padding [#2194]
diff --git a/package.json b/package.json
index 2920aef8..1667ab2f 100644
--- a/package.json
+++ b/package.json
@@ -18,11 +18,15 @@
     "./dist/custom-elements.json": "./dist/custom-elements.json",
     "./dist/shoelace.js": "./dist/shoelace.js",
     "./dist/shoelace-autoloader.js": "./dist/shoelace-autoloader.js",
+    "./dist/themes": "./dist/themes",
     "./dist/themes/*": "./dist/themes/*",
+    "./dist/components": "./dist/components",
     "./dist/components/*": "./dist/components/*",
+    "./dist/utilities": "./dist/utilities",
     "./dist/utilities/*": "./dist/utilities/*",
     "./dist/react": "./dist/react/index.js",
     "./dist/react/*": "./dist/react/*",
+    "./dist/translations": "./dist/translations",
     "./dist/translations/*": "./dist/translations/*"
   },
   "files": [