Open matteematt opened 1 year ago
Hi. It has been a few month since I raised this, any movement or investigation? Cheers
I ended up writing a plugin that lets you work around for this https://www.npmjs.com/package/@genesiscommunitysuccess/analyzer-import-alias-plugin
Checklist
--dev
flag to get more information?Apologies because this is quite compliated
Abstract:
cem
analyzer does not correctly find the package dependency of an import if it is aliased upon importBasic Example
Lib code:
This will produce the following in the cem manifest:
App code:
In this case we expect the manifest from the library to be picked up and add the
title
attribute with an inherited from. But it seems to not pick it up. However if we change the app code to:This does work as a workaround.
Real Example
autofocus
Notes
I can't recreate this in the playground as this is an issue with the interaction between the analyzer and a package that contains a manifest. Using an import alias in the same package is no issue, and therefore I cannot recreate it in the playground