Closed james-em closed 4 years ago
I use Webpack to bundle the entire library into a single function - and the code is already uglified with Terser, so I'm not sure how anything here is breaking specs. Is there anything else in the message? Otherwise I'm not sure it's Datepicker causing the issue.
A quick google search shows that this error comes up when functions are declared in for loops or in conditional statements. I was able to find a single instance where I declared a function in an if statement. I'll put up a change now :)
Ok, just pushed 5.16.0
. All fixed.
@qodesmith
I forgot to say thank you ! It fixed the issue with uglify ! :)
Hi,
When using this library in strict mode, I am getting this error with uglify:
It would be great if the library could follow these specs :)
Thank you James