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

grafana/toolkit: Drop console and debugger statements by default when building plugin #28776

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

dprokop
Copy link
Member

@dprokop dprokop commented Nov 3, 2020

Closes #19841

This PR introduces the following changes into toolkit:

  1. When running plugin:build task console.* and debugger statements are dropped by default
  2. Adds --preserveConsole option to plugin:build task for preseving console.* statements

@dprokop dprokop added this to the 7.4 milestone Nov 3, 2020
@dprokop dprokop requested review from stevenvachon, mckn, ryantxu and a team November 3, 2020 10:39
@dprokop dprokop self-assigned this Nov 3, 2020
@dprokop dprokop requested review from jackw and removed request for a team November 3, 2020 10:39
Copy link
Contributor

@jackw jackw left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@dprokop dprokop merged commit a9e2013 into master Nov 4, 2020
@dprokop dprokop deleted the toolkit-console branch November 4, 2020 08:06
aknuds1 pushed a commit that referenced this pull request Nov 5, 2020
ryantxu pushed a commit that referenced this pull request Nov 18, 2020
@mjseaman mjseaman added this to the 7.4.0 milestone Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

grafana/toolkit: Allow to strip console.log when building
4 participants