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

[babel-register] ignore built canvas plugins #25913

Merged
merged 2 commits into from
Nov 20, 2018

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Nov 20, 2018

This PR adds an exclude regex to babel-register that excludes the built plugins from canvas, except for the items in the functions/server directory. This is the only directory that is copied as-is from canvas_plugin_src, and therefore is reliant on babel-register, but I'm not sure it's the only directory that will ever be reliant on babel-register so cc: @elastic/kibana-canvas

@spalger spalger added review Team:Operations Team label for Operations Team v7.0.0 v6.6.0 labels Nov 20, 2018
@spalger spalger requested a review from mistic November 20, 2018 03:30
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations

@spalger spalger requested a review from jbudz November 20, 2018 04:46
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@mistic mistic left a comment

Choose a reason for hiding this comment

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

LGTM! @spalger maybe @elastic/kibana-canvas could use a different extension, like .es6 for files they will need to be parsed by babel-register because they will be copied as-is. In case they do that we will be able to automatically ignore everything in the register.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@spalger spalger merged commit ca77837 into elastic:master Nov 20, 2018
spalger pushed a commit to spalger/kibana that referenced this pull request Nov 20, 2018
spalger pushed a commit that referenced this pull request Nov 21, 2018
Backports the following commits to 6.x:
 - [babel-register] ignore built canvas plugins  (#25913)
@spalger
Copy link
Contributor Author

spalger commented Nov 21, 2018

6.x/6.6: 8f84950

@spalger spalger deleted the implement/ignore-built-canvas-plugins branch November 21, 2018 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Operations Team label for Operations Team v6.6.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants