Removed star property hack in tachyons-sass via patch-package #8266
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The PR removed the star property hack in the tachyons-sass package and integrates the change via patch-package.
Motivation and Context
The issue is already described in #8243 and #7526. We are running into the same issue when trying to bundle swagger-ui via vite.js, which uses esbuild under the hood which in turn trips over the star property hack. As the upstream fix is very unlikely to ever be merged + published we need another solution. Currently we use
pnpm patch
on the swagger-ui package to fix the issue on our side, but as that patch is based on the minified code and needs to be updated with every swagger-ui update this is not a very good solution. Also the css source maps get out of sync with such a patch.How Has This Been Tested?
I executed
npm run build
and manually verified that thedist/swagger-ui.css
to no longer contains*zoom
.Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests