From ebd1b95ba0888668af3a8a38f35587ef332ad26a Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 12 May 2021 07:33:56 -0400 Subject: [PATCH] remove src/utilities/index --- docs/resources/changelog.md | 1 + src/shoelace.ts | 8 ++++++-- src/utilities/index.ts | 3 --- 3 files changed, 7 insertions(+), 5 deletions(-) delete mode 100644 src/utilities/index.ts diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index 1905678a..bcca3fac 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -14,6 +14,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis - Fixed a bug where the scrollbar would reposition `sl-dialog` on hide causing it to jump [#424](https://github.com/shoelace-style/shoelace/issues/424) - Fixed a bug that prevented the project from being built in a Windows environment - Improved a11y in `sl-progress-ring` +- Removed `src/utilities/index.ts` to prevent tree-shaking confusion (please import utilities directly from their respective modules) - Updated to Bootstrap Icons 1.5.0 - Updated React docs to use [`@shoelace-style/react`](https://github.com/shoelace-style/react) - Updated NextJS docs [#434](https://github.com/shoelace-style/shoelace/pull/434) diff --git a/src/shoelace.ts b/src/shoelace.ts index c84a586f..575f54ac 100644 --- a/src/shoelace.ts +++ b/src/shoelace.ts @@ -1,5 +1,4 @@ -export * from './utilities'; - +// Components export { default as SlAlert } from './components/alert/alert'; export { default as SlAnimation } from './components/animation/animation'; export { default as SlAvatar } from './components/avatar/avatar'; @@ -46,3 +45,8 @@ export { default as SlTabPanel } from './components/tab-panel/tab-panel'; export { default as SlTag } from './components/tag/tag'; export { default as SlTextarea } from './components/textarea/textarea'; export { default as SlTooltip } from './components/tooltip/tooltip'; + +// Utilities +export * from './utilities/animation'; +export * from './utilities/base-path'; +export * from './utilities/icon-library'; diff --git a/src/utilities/index.ts b/src/utilities/index.ts deleted file mode 100644 index fec08c26..00000000 --- a/src/utilities/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './animation'; -export * from './base-path'; -export * from './icon-library';