Skip to content
This repository has been archived by the owner on Aug 27, 2018. It is now read-only.

Modify exports to make webpack es6 happy #184

Merged
merged 1 commit into from
Oct 19, 2017

Conversation

samouri
Copy link
Contributor

@samouri samouri commented Oct 11, 2017

for use in Automattic/wp-calypso#16057 and potentially an eventual merge

Copy link
Member

@dmsnell dmsnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me if you tested it out. I didn't.

export default {
cleanup,
LocalStorageMixin,
};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats the reason to export them individually and as a defaulted object?

Copy link
Contributor Author

@samouri samouri Oct 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its so that I don't need to chase down how the consumers are using it. Definitely not something that should be done during greenfield development

@samouri
Copy link
Contributor Author

samouri commented Oct 19, 2017

Looks good to me if you tested it out. I didn't.

I didn't do an extensive test but I also don't think this change calls for it.
Webpack built successfully and basic notifications-panel functionality seemed to work 👍

I'll merge

@samouri samouri merged commit 1c790b4 into master Oct 19, 2017
@samouri samouri deleted the fix/imports-for-tree-shaking branch October 19, 2017 20:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants