Uglify-JS removes fn-names
Opened this issue · 1 comments
chrstnwhlrt commented
When compiling the player using react-native and minify enabled the minifier removes (default option) all function names. This leads to an issue using the fullscreen scrolling view:
-
Compile without (!) --minify
-
Start fullscreen within provided scrollview => Working
-
Compile with --minify
-
Start fullscren within provided scrollview => NOT working
Quickfix: Disable function name mangling inside the minifier node module:
In node_modules/uglifyjs-webpack-plugin/dist/uglify/minify.js
...
function minify(inputCode, inputMap) {
const result = uglify.minify(inputCode, {
keep_fnames: false
...
abbasfreestyle commented
Hi @christian667,
I haven't tested this with uglify. Did you have any luck finding a similar issue raised with uglify + react native?