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

Commit

Permalink
fix(Vue): disable mangling of function names when building in product…
Browse files Browse the repository at this point in the history
…ion 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.
  • Loading branch information
academici authored and sis0k0 committed Dec 19, 2018
1 parent 4223121 commit fffcf66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/webpack.vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ module.exports = env => {
'collapse_vars': platform !== "android",
sequences: platform !== "android",
},
keep_fnames: true,
},
}),
],
Expand Down

0 comments on commit fffcf66

Please sign in to comment.