Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 9, 2022

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