When attempting to use composes with a local .css file import the cli build command will currently fail. This appears to be because the css-module composes functionality adds require statements to the generated webpack output that we did not account for in our css-module-decorator-loader when adding our theme key.
We need to re-visit this to allow for the extra requires and cannot assume the provided format is JSON as before.
Bug
When attempting to use
composes
with a local .css file import the cli build command will currently fail. This appears to be because the css-module composes functionality addsrequire
statements to the generated webpack output that we did not account for in ourcss-module-decorator-loader
when adding our theme key.We need to re-visit this to allow for the extra requires and cannot assume the provided format is
JSON
as before.The output in fact, can look like this: