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: rollup umd output name #223

Merged

Conversation

hugooliveirad
Copy link
Contributor

@hugooliveirad hugooliveirad commented Feb 22, 2022

After #780ae4, rollup started outputting the UMD bundle as /build/umd/index.production.js instead of /build/umd/index.production.min.js. This breaks build tools (Vite, Parcel, etc.) that use the browser value from each packages package.json.

I figured the correct output would be /build/umd/index.production.min.js, but we might want to update each package's browser value instead to point to the new /build/umd/index.production.js.

I was going through this issue in a project using Parcel v2. I tested this change by applying this change, running yarn run build and yarn run linkAll, and linking the libraries locally. My test project did use all packages, only react-location and react-location-jsurl.

Fixes #220
Fixes #216

@vercel
Copy link

vercel bot commented Feb 22, 2022

@HugoBDev is attempting to deploy a commit to the Tanstack Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

nx-cloud bot commented Dec 24, 2024

View your CI Pipeline Execution ↗ for commit 6790f7f.

Command Status Duration Result
nx affected --targets=test:eslint,test:unit,tes... ✅ Succeeded <1s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-09 07:44:08 UTC

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.

Broken when using with Vite browser entry field in the package.json file is incorrect.
2 participants