-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hooks): export polyfills as a separate entry point (#2529)
* fix(hooks): export polyfills as a separate entry point * docs: changeset * refactor: use globalThis * refactor(hooks): expose polyfills as separate entrypoint
- Loading branch information
Showing
6 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@commercetools-uikit/hooks': patch | ||
--- | ||
|
||
Export polyfill as separate entry point. Consumers should import this explicitly in their application when using SSR. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"main": "dist/commercetools-uikit-hooks-polyfills.cjs.js", | ||
"module": "dist/commercetools-uikit-hooks-polyfills.esm.js" | ||
} |
3 changes: 2 additions & 1 deletion
3
...oks/src/use-mutation-observer/polyfill.ts → packages/hooks/src/polyfills.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b6fae35
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ui-kit – ./
ui-kit-five-rho.vercel.app
ui-kit-commercetools.vercel.app
ui-kit-git-main-commercetools.vercel.app
uikit.commercetools.com