drag and drop pro layer doesn't work on production
Closed this issue · 2 comments
kfarr commented
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?
vincentfretin commented
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.
kfarr commented
I think we could add a key value to the function name that won't be
minified? Or a lookup table with a string lookup key that won't be minified?
…On Fri, Aug 16, 2024 at 2:50 AM Vincent Fretin ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#757 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADS3TKW6QYUS6W7W2SU6I3ZRXDNZAVCNFSM6AAAAABMMWMPTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJTGE4TKOJWGM>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>