Skip to content

fix: ensure that the minified esm file is loaded from unpkg#15

Merged
smeijer merged 2 commits intomainfrom
feature/fix-unpkg
Nov 9, 2022
Merged

fix: ensure that the minified esm file is loaded from unpkg#15
smeijer merged 2 commits intomainfrom
feature/fix-unpkg

Conversation

@smeijer
Copy link
Member

@smeijer smeijer commented Nov 9, 2022

This should fix the unpkg esm import when used like:

<div id="notifications-inbox" />
<script type="module">
  import { renderWidget } from 'https://unpkg.com/@magicbell/embeddable';

  var target = document.getElementById('notifications-inbox');
  renderWidget(target,{});
</script>

@smeijer smeijer merged commit 7767b69 into main Nov 9, 2022
@smeijer smeijer deleted the feature/fix-unpkg branch November 9, 2022 08:56
@github-actions github-actions bot mentioned this pull request Nov 9, 2022
smeijer pushed a commit that referenced this pull request Nov 9, 2022
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @magicbell/embeddable@3.2.4

### Patch Changes

- [#15](#15)
[`7767b69`](7767b69)
Thanks [@smeijer](https://github.com/smeijer)! - ensure that the
minified esm bundle is imported when importing from unpkg.

- Updated dependencies
\[[`1cb984c`](1cb984c)]:
    -   @magicbell/magicbell-react@10.3.3

## @magicbell/magicbell-react@10.3.3

### Patch Changes

- [#13](#13)
[`1cb984c`](1cb984c)
Thanks [@3v0k4](https://github.com/3v0k4)! - Fix embeddable web
notifications: since embeddable aliases axios (redaxios) and redaxios
does not implement `.getUri`, the code was failing for the embeddable
package (that uses redaxios) but not for the react package (that uses
axios).

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@smeijer smeijer self-assigned this Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants