-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Description
Background
Earlier versions of the goog.module Module Conversion Guide in #5026 specified the following export style, with a single assignment to exports:
/** @public */
const publicThing = /* ... */;
/** @private */
const supposedlyPrivateThing = /* ... */;
/** @private */
const actuallyPrivateThing = /* ... */;
exports = {
publicThing,
supposedlyPrivateThing_: supposedlyPrivateThing,
};After some further consideration, we decided it would be preferable to organise exports as a series of assignments to individual properties on exports instead (final style TBC):
const publicThing = /* ... */;
exports.publicThing = publicThing;
const supposedlyPrivateThing = /* ... */;
exports.supposedlyPrivateThing_ = supposedlyPrivateThing;
const actuallyPrivateThing = /* ... */;
Issue
We should be consistent about this.
Suggested Fix
Create a single PR bulk-updating already-migrated files from the earlier style to the current one.