Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit fffcf66

Browse files
academicisis0k0
authored andcommitted
fix(Vue): disable mangling of function names when building in production mode (#743)
## PR Checklist - [X] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/CONTRIBUTING.md#commit-messages. - [X] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it. - [X] All existing tests are passing: https://github.com/NativeScript/nativescript-dev-webpack/blob/master/CONTRIBUTING.md#testing-locally-by-running-e2e-tests ## What is the current behavior? When building {N} Vue apps in production mode the function names are renamed by UglifyJS to make the bundle smaller. This causes problems when some `tns-core-modules` components are renamed (`SegmentedBar`, `FormattedString`). ``` tns run ios --bundle --env.production ``` ## What is the new behavior? The function names are not renamed anymore. fixes nativescript-vue/vue-cli-template#105 for the {N} CLI Vue template.
1 parent 4223121 commit fffcf66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: templates/webpack.vue.js

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ module.exports = env => {
143143
'collapse_vars': platform !== "android",
144144
sequences: platform !== "android",
145145
},
146+
keep_fnames: true,
146147
},
147148
}),
148149
],

0 commit comments

Comments
 (0)