-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(svgo/r config): update handling of prefixIds plugin to prefix svg…
… ID's with a string hash of their filename (#3342) * fix(svgo/r config): update handling of prefixIds plugin to prefix svg ID's with a string hash of their filename in order to provide usable ID prefixes for SVG's in dev/prod webpack configs and vite-plugin-svgr in mc-scripts * fix(svgo/r config): remove unused 'svgoPrefixIdsCount' variable from prod webpack config and vite-plugin-svgr * fix(svgo/r config): remove string-hash dep in favor of nodejs builtin crypto library, use shake256 hash in order to limit the output length of the hash
- Loading branch information
1 parent
3d4d502
commit 5314f16
Showing
5 changed files
with
293 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@commercetools-frontend/mc-scripts': patch | ||
--- | ||
|
||
Avoid implementing 2 separate ID's for ID's that are declared and consumed in the same SVG file in webpack's SVGR loader and Vite SVGR plugin. | ||
|
||
More information about the approach can be found [here](https://github.com/svg/svgo/issues/913#issuecomment-369373572). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
5314f16
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.
Deploy preview for application-kit-custom-views ready!
✅ Preview
https://application-kit-custom-views-cbmsz7v62-commercetools.vercel.app
Built with commit 5314f16.
This pull request is being automatically deployed with vercel-action
5314f16
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.
Deploy preview for merchant-center-application-kit ready!
✅ Preview
https://merchant-center-application-ipifujimi-commercetools.vercel.app
Built with commit 5314f16.
This pull request is being automatically deployed with vercel-action