Tweak syntax in rollup build script (#9852)
* Tweak syntax in rollup build script @bvaughn and I already discussed this. **test plan:** `yarn build` * Remove JSDoc comments **what is the change?:** removing some comments **why make this change?:** The code is basically self explanatory and these comments could get out of sync. **test plan:** Visual inspection, `yarn build` and `yarn test` **issue:** https://github.com/facebook/react/issues/9398
Flarnie Marchan committed
Jun 6, 2017 at 07:26 UTC
30e6c6c9c9f8e52776981a0e91ccfbabb95f7974
1 file changed
+6
-7
scripts/rollup/build.js
+6
-7
@@ -194,13 +194,12 @@ function getFilename(name, hasteName, bundleType) {
194
}
195
}
196
197
-function uglifyConfig({
198
- mangle,
199
- manglePropertiesOnProd,
200
- preserveVersionHeader,
201
- removeComments,
202
- headerSanityCheck,
203
-}) {
197
+function uglifyConfig(configs) {
198
+ var mangle = configs.mangle;
199
+ var manglePropertiesOnProd = configs.manglePropertiesOnProd;
200
+ var preserveVersionHeader = configs.preserveVersionHeader;
201
+ var removeComments = configs.removeComments;
202
+ var headerSanityCheck = configs.headerSanityCheck;
203
return {
204
warnings: false,
205
compress: {