This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Commit fffcf66
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
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
0 commit comments