From 8dce69136bde89e197833ba39634b1253fdeb142 Mon Sep 17 00:00:00 2001 From: Vignesh Shanmugam Date: Thu, 17 May 2018 15:21:46 +0200 Subject: [PATCH] update readme and test --- packages/babel-minify/README.md | 1 + .../__tests__/fixtures/merge-if-2/actual.js | 3 +-- .../__tests__/fixtures/merge-if-2/expected.js | 1 - packages/gulp-babel-minify/README.md | 1 + 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/babel-minify/README.md b/packages/babel-minify/README.md index abc9c5e3c..cc7b1d449 100644 --- a/packages/babel-minify/README.md +++ b/packages/babel-minify/README.md @@ -50,6 +50,7 @@ Refer [babel-preset-minify options](https://github.com/babel/minify/tree/master/ + `minifyPreset`: Custom minify preset + `inputSourceMap`: Input Sourcemap + `sourceMaps`: [Boolean] ++ `comments`: [Function | RegExp | Boolean] ## CLI Options diff --git a/packages/babel-plugin-minify-simplify/__tests__/fixtures/merge-if-2/actual.js b/packages/babel-plugin-minify-simplify/__tests__/fixtures/merge-if-2/actual.js index 0cefa94bb..a79b00376 100644 --- a/packages/babel-plugin-minify-simplify/__tests__/fixtures/merge-if-2/actual.js +++ b/packages/babel-plugin-minify-simplify/__tests__/fixtures/merge-if-2/actual.js @@ -1,6 +1,5 @@ -// FIXME: for some reason, the inner `if` statement gets indented 4 spaces. function foo() { if (a) { - if (b()) return false; + if (b()) return false; } else if (c()) return true; } diff --git a/packages/babel-plugin-minify-simplify/__tests__/fixtures/merge-if-2/expected.js b/packages/babel-plugin-minify-simplify/__tests__/fixtures/merge-if-2/expected.js index 87f529507..532d9d21c 100644 --- a/packages/babel-plugin-minify-simplify/__tests__/fixtures/merge-if-2/expected.js +++ b/packages/babel-plugin-minify-simplify/__tests__/fixtures/merge-if-2/expected.js @@ -1,4 +1,3 @@ -// FIXME: for some reason, the inner `if` statement gets indented 4 spaces. function foo() { if (a) { if (b()) return false; diff --git a/packages/gulp-babel-minify/README.md b/packages/gulp-babel-minify/README.md index 0954e5c42..aa26cea40 100644 --- a/packages/gulp-babel-minify/README.md +++ b/packages/gulp-babel-minify/README.md @@ -39,3 +39,4 @@ Default: `{}` + `babel`: Use a custom `@babel/core` + `minifyPreset`: Use a custom `babel-preset-minify` ++ `comments`: [Function | RegExp | Boolean]