-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🚀 Transformer for removing AMP devAssert, working on existing known cases #27821
🚀 Transformer for removing AMP devAssert, working on existing known cases #27821
Conversation
if (innerCallExpression) { | ||
const evalutedDevAssert = evaluateDevAssert(innerCallExpression); | ||
if (!evalutedDevAssert.confident) { | ||
return; |
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.
should we return a boolean here? return false
*/ | ||
|
||
/** | ||
* Is a MemberExpression "thenable", `foo().then(() => {});` |
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.
Isn't this just asking if the expression is a promise or not? What else would be "thenable" besides a promise?
Drive-by comment to say thanks for working on this PR, which will have the cascading effect of improving several aspects of our compilation toolchain. Some context:
|
Likely won’t be able to work on this for some time, but this PR might be a good jumping off point for someone to complete the work. |
This WIP plugin is ready for review, marked as a draft since it's not yet tied into the development process.