From c5f359304a758c37e24f9aa93fc094218bdef8f2 Mon Sep 17 00:00:00 2001 From: Leandro Gehlen Date: Fri, 23 Mar 2018 13:14:10 -0300 Subject: [PATCH 1/2] Fixes error to extract constructor name unsing build --prod --- config/uglifyjs.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/uglifyjs.config.js b/config/uglifyjs.config.js index 2d74000c..bb1e3045 100644 --- a/config/uglifyjs.config.js +++ b/config/uglifyjs.config.js @@ -13,6 +13,7 @@ module.exports = { */ compress: { toplevel: true, - pure_getters: true + pure_getters: true, + keep_fnames: true } -}; \ No newline at end of file +}; From 4386179b7a573d9d3cdbb9c1e7fe38ed73f9d364 Mon Sep 17 00:00:00 2001 From: Leandro Gehlen Date: Fri, 23 Mar 2018 13:51:01 -0300 Subject: [PATCH 2/2] Fixes wrong section --- config/uglifyjs.config.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/uglifyjs.config.js b/config/uglifyjs.config.js index bb1e3045..02466cc1 100644 --- a/config/uglifyjs.config.js +++ b/config/uglifyjs.config.js @@ -7,13 +7,17 @@ module.exports = { * mangle: uglify 2's mangle option */ mangle: true, + + /** + * keep_fnames: uglify 2's keep_fnames option + */ + keep_fnames: true, /** * compress: uglify 2's compress option */ compress: { toplevel: true, - pure_getters: true, - keep_fnames: true + pure_getters: true } };