Skip to content
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

[UI Bundler] Add Aliases for Moment #13628

Merged

Conversation

tsullivan
Copy link
Member

Plugins need to be able to use the same instance of moment, in order to be able to set options on it and have the timepicker understand that those options have been set.

This PR adds webpack aliases for moment and moment-timezone, so when a plugin imports those, they get the instance of that dependency that's installed in Kibana.

@tsullivan tsullivan added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v6.1.0 v7.0.0 labels Aug 21, 2017
@tsullivan tsullivan requested a review from spalger August 21, 2017 20:57
@tsullivan
Copy link
Member Author

jenkins test this

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

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

LGTM

@tsullivan tsullivan merged commit 49ba9e8 into elastic:master Aug 22, 2017
@tsullivan tsullivan deleted the enhance/uibundler-add-moment-aliases branch August 22, 2017 16:26
tsullivan added a commit to tsullivan/kibana that referenced this pull request Aug 22, 2017
@tsullivan
Copy link
Member Author

6.x/6.1.0: 6d90c08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v6.1.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants