3DStreet/3dstreet

drag and drop pro layer doesn't work on production

Closed this issue · 2 comments

I think it's because function names were clobbered during minimization so they cannot be fired after the drag event by using the function name as string

console error is:
AddLayerPanel.component.jsx:412 Function $V not found onDrop @

So ... maybe there is a way to mark those functions to not be minimized?

If we add a new function, we need to make sure to add it in the webpack config as well, it's a bit brittle.
I'm wondering if there is another way to modify the code to avoid having a name mismatch when it's minified.