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

use of 'let' breaks uglifyjs #64

Closed
bigfish opened this Issue Dec 17, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@bigfish
Copy link

commented Dec 17, 2018

I'm getting the build error

ERROR in index.js from UglifyJs
Unexpected token: name (clientRect) [./node_modules/panzoom/index.js:146,0][index.js:57353,8]

caused by line 146:

let clientRect = owner.getBoundingClientRect()

since the rest of the module is es5, I believe it should be 'var clientRect...' ?

@anvaka anvaka closed this in d91438f Dec 18, 2018

@anvaka

This comment has been minimized.

Copy link
Owner

commented Dec 18, 2018

doh. Sorry about that. Fixed in v7.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.