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

Update gatsby-browser.js #1

Merged
merged 1 commit into from Mar 23, 2018
Merged

Conversation

ajrussellaudio
Copy link
Contributor

Gatsby depends on a version of Uglify which does not support ES6 syntax. This causes a crash when running this plugin with Gatsby's deploy script with this plugin installed (gatsby develop builds are unaffected).

This PR rolls two function calls back to ES5 syntax, which solves the crash.

I totally acknowledge that this is a fix for a bug caused by a Gatsby dependency, and not a bug in this plugin. But the fix is very simple in this codebase, versus a potentially breaking change in Gatsby's.

Change function calls to ES5 syntax
@konsumer konsumer merged commit 4f874b1 into konsumer:master Mar 23, 2018
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.

None yet

2 participants