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

build/esm-package: update media-chrome to use type:module. Update CJS… #90

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

cjpillsbury
Copy link
Collaborator

… modules to have expected cjs extension. Update build script references.

This issue is also resolved in the react wrapper PR ( #85 ) but issuing as a narrower PR to accelerate merge+release process. After the last release, we were no longer compiling to UMD modules, so we need to make these changes to support using media-chrome in node environments (e.g. next.js) . Once merged, we should cut another release.

… modules to have expected cjs extension. Update build script references.
@cjpillsbury cjpillsbury requested review from heff and dylanjha November 8, 2021 14:06
@vercel
Copy link

vercel bot commented Nov 8, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mux/media-chrome/GupKQcgq2gNfXYH6TKBG9EUQSeoy
✅ Preview: https://media-chrome-git-fork-cjpillsbury-build-esm-package-mux.vercel.app

Copy link
Collaborator

@dylanjha dylanjha left a comment

Choose a reason for hiding this comment

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

LGTM -- I was running into this problem with Next.js

Copy link
Collaborator

@heff heff left a comment

Choose a reason for hiding this comment

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

Awesome 👍

@heff heff merged commit cf7f555 into muxinc:main Nov 8, 2021
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.

3 participants