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

fix: minify function override breaks build when extractComments is true #49

Merged
merged 1 commit into from
Dec 27, 2018

Conversation

mattjcowan
Copy link
Contributor

This PR contains a:

  • [x ] bugfix
  • new feature
  • code refactor
  • [ x] test update
  • typo fix
  • metadata update

Motivation / Use-Case

When extractComments is true in the terser options, and a minify function override is provided, the extractedComments variable within the terser plugin is null. A simple null check on the variable fixes the issue.

Breaking Changes

Additional Info

@jsf-clabot
Copy link

jsf-clabot commented Dec 27, 2018

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Thanks for PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants