- Issue created by @wotnak
When trying to use the module for sdc component libraries defined in a module named with the `components` suffix, asset paths are rewritten incorrectly.
The problem is in rewriteLibraryForDist and rewriteLibraryForDev functions, when determining theme/module relative path to component assets. There is a check for 'components/' path fragment, which is too loose, and should check '/components/' to only match the component directory instead of any directory which name ends with 'components'.
Make the path checks more strict to only match actual component directories.
Active
1.1
Code