-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Minification leads to broken application #2116
Comments
This framework depends on creating things based on their original class and function names. Create a |
@kzc Thank you but now I get this error:
I have no idea what the json module is trying to do with the favicon. |
Looks like an unrelated Parcel issue with non JS assets. Post the entire error and stack trace. If you remove the favicon does it build and work? |
Unfortunately, no.
|
No stack trace? |
Sorry, I forgot to post it. Yes, there is a stack trace:
|
Here is the stack trace with favicons
|
@domoritz seems like one of your config files is invalid JSON, probably the tsconfig |
@DeMoorJasper The errors go away when I don't use a Here is my tsconfig file {
"compilerOptions": {
"module": "esnext",
"target": "es2017",
"outDir": "build",
"moduleResolution": "node",
"esModuleInterop": true,
"noImplicitAny": false,
"strictNullChecks": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"resolveJsonModule": true
},
"files": ["src/index.ts", "flights/index.ts", "weather/index.ts"]
} |
@domoritz do you have any other config files, that one is valid. Ow just read about your terserrc fixing it, than that one is invalid JSON |
🤦♂️ I thought a |
Unfortunately, I still does not work. See https://uwdata.github.io/falcon/flights-mapd/. You can check the full code at https://github.com/uwdata/falcon. |
Please post your https://uwdata.github.io/falcon/flights-mapd/ seems to function and is interactive with all graphs updating in FF at least. Without knowing anything about your app or its terminology - what exactly is wrong with it? It would be easier to troubleshoot if you produced the smallest possible program exhibiting an error. |
The charts all load but when you start brushing in one view, the other charts should show histograms. Instead, I only see the grey bars of the background. The overall count chart updates fine. Bad Good Here is the I trashed the cache and dist folder as you can see in https://github.com/uwdata/falcon/blob/master/package.json#L14. I wish I had a smaller example. I am a maintainer of a popular visualization library and I understand that I would make it easier for you if I had a complete but small example. I really appreciate your help here and try my best to thoroughly explain the issue I see and steps I have taken. |
Strange. When I made my last comment I was seeing the "Good" state, but now that I've reloaded your latest version it is showing the "Bad" state. You could try to narrow down what the minify issue is by alternatively using |
Probably some caching issue. I'll get back to you when I could try these options. Thank you for suggesting a way to debug this. |
Ahh, the problem is With {
"compress": {
"unused": false
}
} It works. |
|
Good to see you've found a workaround. If you ever make a reduced Terser bug repro that would be helpful.
Less likely:
For bonus points also make note of the minified bundle size for each option. |
Unfortunately, I'm super busy with school stuff right now but if anyone wants to try, https://github.com/uwdata/falcon is open source. I might get to this later next week. |
I manually resolved this issue by disabling optimizations: vega/falcon@503c8b7. I don't think it's a complete fix, though. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
🐛 bug report
Forked off of #1887 with a specific issue described in vega/falcon#94.
🤔 Expected Behavior
Minification should not break the page.
😯 Current Behavior
In the minified version of the MapD demo, drawing brushes does not work.
💻 Code Sample
See https://github.com/uwdata/falcon/
🌍 Your Environment
The text was updated successfully, but these errors were encountered: