refactor(core): disable property renaming for the event dispatch script (#55502)

This commit updates Terser config to disable property renaming for the event delegation script (that we later inline into the HTML during SSR). The problem is that event dispatcher relies on some functions on the EventContract class to have original names after after minification, we loose an ability to call those functions.

PR Close #55502
This commit is contained in:
Andrew Kushnir 2024-04-23 17:42:13 -07:00
parent 4bf3d89dae
commit bbd0cbfacf

View file

@ -7,7 +7,7 @@
},
"mangle": {
"toplevel": true,
"properties": true,
"properties": false,
"keep_classnames": false,
"keep_fnames": false
},