-
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
Keep AMP_CONFIG writing in sync with production release script. #24471
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -71,22 +71,20 @@ const EXTENSION_BUNDLE_MAP = { | |||||||||||||||||||||||||||||||||||||||||||||||||||
*/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||
const UNMINIFIED_TARGETS = [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'amp.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'amp-esm.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'amp-shadow.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'amp-inabox.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'alp.max.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'integration.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'amp-shadow.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'amp-esm.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
/** | ||||||||||||||||||||||||||||||||||||||||||||||||||||
* List of minified targets to which AMP_CONFIG should be written | ||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might make sense to add a comment here to keep both lists in sync with the release scripts. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||||||||||||||||||||||||||||||||||||||||||||||||||||
*/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||
const MINIFIED_TARGETS = [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'v0.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'shadow-v0.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'amp4ads-v0.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'alp.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'f.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
'shadow-v0.js', | ||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there no minified esm target? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see amp-esm.js referenced anywhere else. is it still a thing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe it is. amphtml/build-system/tasks/dist.js Lines 159 to 165 in 8fe8186
Lines 47 to 51 in b6d45be
amphtml/build-system/compile/compile.js Lines 150 to 154 in 36b7f5c
amphtml/build-system/tasks/helpers.js Lines 192 to 199 in b11fe0e
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so is there still an output file named There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just checked, you are right. Sorry. Carry on :) PS: We should probably remove |
||||||||||||||||||||||||||||||||||||||||||||||||||||
]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
/** | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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.
nit: Alphabetize?
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.
sorted MINIFIED list in alphabetic order. and kept same ordering in this UNMINIFIED list