-
Notifications
You must be signed in to change notification settings - Fork 23
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
[FEATURE] builder: Improve support for ES6+ syntax #774
Conversation
112207c
to
cb7e451
Compare
177df97
to
6f2793b
Compare
efa5eab
to
51cf739
Compare
098331c
to
49b0f73
Compare
49b0f73
to
7308a04
Compare
JIRA: CPOUI5FOUNDATION-374
7308a04
to
f3df91a
Compare
… XMLComposite, SmartTemplate and FioriElements
2a3884a
to
e4783b1
Compare
} | ||
}); | ||
} | ||
if (defineCall.factory.async) { |
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.
This message is IMO misleading. The ui5loader can handle async callbacks. The returned promise is just used as export value and delivered to anyone importing the module.
Here, the smart templates (FE v2) cannot handle such a promise. That's the reason why we should log a message.
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.
Thanks Frank. Correct. So what should we log in case of the XMLComposite
here the artefact can be placed in the view declaratively. The sap.ui.core.mvc.XMLView does not support returning a promise, correct? But do we know who consumes the XMLComposite
. A typed view might import the asynchronously defined XMLComposite
and can handle the asynchronism.
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.
Let's handle this in a follow-up PR, so that we can merge the current changes.
To be added in a follow-up PR
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.
LGTM 👍🏻
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.
Had a rudimentary look, and LGTM
JIRA: CPOUI5FOUNDATION-374