From 53aae15d6e1f02d93fbb0819b490e91dce8c9fce Mon Sep 17 00:00:00 2001 From: Zac Lovoy 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 --- 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 51c50b0e3..584b751d0 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 `` causing scroll jumping when using `resize="auto"` [#2182] - Fixed a bug in `` where the title attribute would show with redundant info [#2184] - Fixed a bug in `` that caused multi-selects without placeholders to have the wrong padding [#2194] diff --git a/package.json b/package.json index 2920aef8a..1667ab2fe 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": [