-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Exception while trying to minify moment.js and jquery.inputmask #86
Comments
Including inputmask
gives this on client:
|
What version are you using? 1.9.0-beta? https://www.nuget.org/packages/ClientDependency/1.9.0-beta |
Same for 1.9-beta
|
Same error for not minified inputmask:
|
Which inputmask version files are you using so i can test? |
The latest one: 3.2.3, same here for moment.js |
I cannot replicate this with 3.2.3, however the 'latest' version is 3.3.1 from here which i can replicate: https://github.com/RobinHerbots/jquery.inputmask/releases/tag/3.3.1 I've tested with your exact configuration:
The problem seems to be some syntax in inputmask.min.js which is unsupported for some reason. It's worth noting that older versions of input mask don't have this issue, it's also worth nothing that the original JsMin has this bug along with the updated version of JsMin I've been supporting (which is part of 1.9.0-beta) https://github.com/shazwazza/jsminsharp |
And just to note why this error is happening. It's due to the minifier that this library is using which ends up just executing a regex statement for no reason on a single line: Specifically this one right at the end
which actually performs no function, this is a no-op function so can only assume it's an issue with the minifier used for this library or an error with the original code. In any case, JsMin should still be able to deal with this so i'll fix up. |
I've fixed the issue: Shazwazza/JsMinSharp#8 will port this over to CDF very soon. |
I'll post up a new beta version soon |
That is great! However, I've had this issue with non minified version too. Same error with moment. Js without inputmask |
I just tested with the non-min version and all works, haven't checked moment yet but if it's the same error I think it's the same issue |
Well, now it has no exception, but still has the error on client after minification |
did you bump your cdf version in config to make sure nothing is coming from a corrupted cached version? |
wow! thank you so much :) |
Great! Thanks for reporting, i'll release a non-beta version soon |
The text was updated successfully, but these errors were encountered: