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: try fix our requireJS clash with building for the node platform and not browser #3395
Conversation
Run & review this pull request in StackBlitz Codeflow. |
π¦ Changeset detectedLatest commit: 868d7b4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 110 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
β Deploy Preview for paste-theme-designer ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
β Deploy Preview for paste-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
βοΈ Nx Cloud ReportCI is running/has finished running commands for commit 868d7b4. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. π See all runs for this branch β Successfully ran 1 targetSent with π from NxCloud. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 868d7b4:
|
Size Change: -24.5 kB (-2%) Total Size: 992 kB
βΉοΈ View Unchanged
|
Passing run #6515 βοΈ
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
@@ -24,7 +24,7 @@ | |||
"tsc": "tsc" | |||
}, | |||
"dependencies": { | |||
"react-uid": "2.3.1" | |||
"react-uid": "2.3.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removes tslib as a dependency.
@@ -214,7 +214,8 @@ | |||
}, | |||
"resolutions": { | |||
"csstype": "3.0.11", | |||
"playwright": "1.28.1" | |||
"playwright": "1.28.1", | |||
"tslib": "2.6.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removes all the different versions
38280e9
to
b34e8e4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π
Description and useful links to discussions / issues / tickets
Changes in this PR:
Change Platform target to browser
We currently target node as the platform. That has some consequences with the way esbuild handles conditions and the way it handles export maps.
What seems to be happening is that when it targets node, a packages export map may list a
module
path, but esbuild ignores it and just grabs the default or import. Depending on the way the library is built that means an es modules build of our ackage will grab and bundle a commonJS or UMD version of the library and not the es module version.Switching the platform to
browser
means it will respect the export map and grab the actual es module version of any dependencies.Checklist
required
checks have passedπ΅π»ββοΈ Run website visual regression
label