turn icon indicating copy to clipboard operation
turn copied to clipboard

`camelCase()` is minified to a function named `e()`

Open mikehulbert opened this issue 1 year ago • 0 comments

Hey @domchristie 👋,

I have an intermittent issue that arises from the camelCase helper being minified to the below function.

function e(t){return t.split(/[^\w]/).map(((t,e)=>0===e?t.toLowerCase():i(t))).join("")}

The e function occasionally overrides parameters in my javascript, I use e for javascript events a lot e.g. submit(e) (relatively common parameter name).

I'm importing '@domchristie/turn/dist/turn.js' which resolves the issue although I wanted to highlight it with you.

Mike

mikehulbert avatar Jul 24 '24 10:07 mikehulbert