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

separate module imports #105

Conversation

kevinwhereby
Copy link
Contributor

removes the default export from /dist and exports separate subpaths from /dist/react and /embed

test

  • import into your project like import { useRoomConnection } from "@whereby.com/browser-sdk/react" or import("@whereby.com/browser-sdk/embed")
  • make sure everything still works

It's all working for me on vite/cra/next apps in dev and prod builds which is exciting

@kevinwhereby kevinwhereby force-pushed the kevinhanna/separate-module-exports branch from 746fa81 to da9c39b Compare October 27, 2023 10:19
Copy link
Collaborator

@havardholvik havardholvik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. A small commit from me only

@kevinwhereby kevinwhereby changed the base branch from development to nandor/pan-400-rename-rejected-knock_rejected October 27, 2023 12:22
kevinwhereby and others added 2 commits October 27, 2023 13:24
We dont want to expose the LocalMeda and RoomConnection classes just
yet, so leave them out of the exports.
@kevinwhereby kevinwhereby force-pushed the kevinhanna/separate-module-exports branch from a60c37f to b069f47 Compare October 27, 2023 12:24
@kevinwhereby kevinwhereby merged commit 84d3f28 into nandor/pan-400-rename-rejected-knock_rejected Oct 27, 2023
@kevinwhereby kevinwhereby deleted the kevinhanna/separate-module-exports branch October 27, 2023 12:34
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