-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(angular): refactored angular related imports generation #751
base: main
Are you sure you want to change the base?
refactor(angular): refactored angular related imports generation #751
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
* @param json The component to add the import to | ||
* @param theImport The import to add | ||
*/ | ||
export function addImportToMitosisComponent( |
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.
We don't have this yet. Thanks for putting it together!
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.
Aand I need to update snapshots here as well
95984d8
to
9c833c4
Compare
@samijaber fixed everything. Take a look |
@g-cheishvili I believe this is still pending updating snapshots? |
@g-cheishvili any updates on this? |
Description
populatedWithAngularImports
and moved adding Angular related imports to be BEFOREjson.post
call.MitosisComponent
. I do not know if something like it existed, could not find it, so added it. if there is any, please refer me to it.Reasoning
I added these because otherwise in
json.post
you can not see which imports are gonna end up in file completely. Also, output code's structure is now better because it follows a widely accepted pattern: