-
Notifications
You must be signed in to change notification settings - Fork 41
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
UglifyJs error #47
Comments
My best guess is webpack is having a tough time with this code: https://github.com/kauegimenes/jsonexport/blob/master/lib/core/escape-delimiters.js#L26 I think webpack is having an issue with a multlined ternary statement I will not be performing additional testing or research on this issue. That is my guess. Try editing that file in your local copy and turn the ? statement into an IF ELSE, if it works then we can talk more. |
The error was on line 13 Changing it to var works but fails on the next let statement. This leave me wondering if babel parses the module to convert it to ES5 since UglifyJs only supports ES5. |
Ohhhh shit, you are trying to webpack..... duh... one second |
Please read the documentation on using jsonexport in the browser and you'll be fine: |
Please close issue when satisified |
import jsonexport from "jsonexport/dist"; |
Hey Quebec/Canada, you're using TypeScript? Hell yeah, Angular5? I swear I've seen your face on other issue reports. Besides the point, an Angular5 project needed in-browser exporting which brought me to jsonexport last year which was NOT webpack compatible until I added it and became a contributor of this package. I do love this package a lot. It has made my exporting life, in browser especially, a world of easier than in the past. Farewell good fella |
Our stack is... https://stackshare.io/leadfox/leadfox We use jsonexport to Promise.each() multiple Rest API requests over millions of contacts for CSV exports. Thanks again. |
I get this using webpack 3.11
The text was updated successfully, but these errors were encountered: