Make more compatible with Terser Mangler #42974
Labels
package: material-ui
Specific to @mui/material
status: waiting for author
Issue with insufficient information
Summary
Remove the incompatible function calls as defined by Terser at https://github.com/terser/terser, Terser Mangler breaks when using properties = true
Examples
Quote from Terser Github Page, tested myself this seems to be the avoidable problem.
"
Avoid calling functions like defineProperty or hasOwnProperty, because they refer to object properties using strings and will break your code if you don't know what you are doing.
"
Motivation
Improve the compression using Terser Mangler make the code more secure in the rest of the main web pack bundle.
Search keywords: terser,mangler,hasownproperty,defineProperty
The text was updated successfully, but these errors were encountered: