Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix assets path issue for "compound-design-tokens" package
Fixed path issue for "compound-design-tokens" package independent of whether the package is cloned and linked within "matrix-react-sdk" or not. Resource paths are e.g. ... - Not linked package - resourcePath: C:\src\matrix-react-sdk\node_modules\@vector-im\compound-design-tokens\icons\chat-solid.svg - Cloned & linked package - resourcePath: C:\src\compound-design-tokens\icons\chat-solid.svg Problem: The "compound-design-tokens" package does not have a 'dist' or "res" subfolder for the assets so that the regex /^.*[/\\](dist|res)[/\\]/ does not match. Solution: Add the missing root folder name for the compound tokens assets to the regex in the "webpack.config.js" to match the paths, with resulting regex... /^.*[/\\](dist|res|compound-design-tokens)[/\\]/ Tested both scenarios (linked/not linked) on Windows.
- Loading branch information