Skip to content

Commit

Permalink
Enable deadcode elimination for babili-webpack-plugin v0.0.11 (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 authored Mar 4, 2017
1 parent 38dd947 commit 86f53c2
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 68 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"babel-preset-react-optimize": "^1.0.1",
"babel-preset-stage-0": "^6.22.0",
"babel-register": "^6.22.0",
"babili-webpack-plugin": "^0.0.9",
"babili-webpack-plugin": "^0.0.11",
"boiler-room-custodian": "^0.6.1",
"concurrently": "^3.1.0",
"cross-env": "^3.1.4",
Expand Down
5 changes: 1 addition & 4 deletions webpack.config.electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ export default validate(merge(baseConfig, {
/**
* Babli is an ES6+ aware minifier based on the Babel toolchain (beta)
*/
new BabiliPlugin({
// Disable deadcode until https://github.com/babel/babili/issues/385 fixed
deadcode: false,
}),
new BabiliPlugin(),

/**
* Create global constants which can be configured at compile time.
Expand Down
5 changes: 1 addition & 4 deletions webpack.config.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ export default validate(merge(baseConfig, {
/**
* Babli is an ES6+ aware minifier based on the Babel toolchain (beta)
*/
new BabiliPlugin({
// Disable deadcode until https://github.com/babel/babili/issues/385 fixed
deadcode: false,
}),
new BabiliPlugin(),

new ExtractTextPlugin('style.css', { allChunks: true }),

Expand Down
128 changes: 69 additions & 59 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ babel-code-frame@^6.11.0, babel-code-frame@^6.16.0, babel-code-frame@^6.22.0:
esutils "^2.0.2"
js-tokens "^3.0.0"

babel-core@^6.0.0, babel-core@^6.22.1, babel-core@^6.23.0, babel-core@^6.7.2:
babel-core@^6.0.0, babel-core@^6.22.1, babel-core@^6.23.0, babel-core@^6.23.1, babel-core@^6.7.2:
version "6.23.1"
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.23.1.tgz#c143cb621bb2f621710c220c5d579d15b8a442df"
dependencies:
Expand Down Expand Up @@ -505,9 +505,9 @@ babel-helper-is-void-0@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/babel-helper-is-void-0/-/babel-helper-is-void-0-0.0.1.tgz#ed74553b883e68226ae45f989a99b02c190f105a"

babel-helper-mark-eval-scopes@^0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/babel-helper-mark-eval-scopes/-/babel-helper-mark-eval-scopes-0.0.2.tgz#909fd1f2384570cd3003283773852d9d63922a37"
babel-helper-mark-eval-scopes@^0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/babel-helper-mark-eval-scopes/-/babel-helper-mark-eval-scopes-0.0.3.tgz#902f75aeb537336edc35eb9f52b6f09db7785328"

babel-helper-optimise-call-expression@^6.23.0:
version "6.23.0"
Expand Down Expand Up @@ -549,9 +549,9 @@ babel-helper-replace-supers@^6.22.0, babel-helper-replace-supers@^6.23.0:
babel-traverse "^6.23.0"
babel-types "^6.23.0"

babel-helper-to-multiple-sequence-expressions@^0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/babel-helper-to-multiple-sequence-expressions/-/babel-helper-to-multiple-sequence-expressions-0.0.3.tgz#c789a0faccd2669c51234be2cea7a3e5a0573c25"
babel-helper-to-multiple-sequence-expressions@^0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/babel-helper-to-multiple-sequence-expressions/-/babel-helper-to-multiple-sequence-expressions-0.0.4.tgz#d94414b386b6286fbaad77f073dea9b34324b01c"

babel-helpers@^6.23.0:
version "6.23.0"
Expand Down Expand Up @@ -630,17 +630,24 @@ babel-plugin-jest-hoist@^19.0.0:
version "19.0.0"
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-19.0.0.tgz#4ae2a04ea612a6e73651f3fde52c178991304bea"

babel-plugin-minify-constant-folding@^0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/babel-plugin-minify-constant-folding/-/babel-plugin-minify-constant-folding-0.0.3.tgz#a511e839562489811987a7a503c43c312c40138a"
babel-plugin-minify-builtins@^0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/babel-plugin-minify-builtins/-/babel-plugin-minify-builtins-0.0.2.tgz#f3be6121763c0c518d5ef82067cef4b615c9498c"
dependencies:
babel-helper-evaluate-path "^0.0.3"

babel-plugin-minify-dead-code-elimination@^0.1.2:
version "0.1.3"
resolved "https://registry.yarnpkg.com/babel-plugin-minify-dead-code-elimination/-/babel-plugin-minify-dead-code-elimination-0.1.3.tgz#7882c014619934cb9aca69d85c968ed124ac97e3"
babel-plugin-minify-constant-folding@^0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/babel-plugin-minify-constant-folding/-/babel-plugin-minify-constant-folding-0.0.4.tgz#b6e231026a6035e88ceadd206128d7db2b5c15e6"
dependencies:
babel-helper-mark-eval-scopes "^0.0.2"
babel-helper-evaluate-path "^0.0.3"
jsesc "^2.4.0"

babel-plugin-minify-dead-code-elimination@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/babel-plugin-minify-dead-code-elimination/-/babel-plugin-minify-dead-code-elimination-0.1.4.tgz#18b6ecfab77c29caca061d8210fa3495001e4fa1"
dependencies:
babel-helper-mark-eval-scopes "^0.0.3"
babel-helper-remove-or-void "^0.0.1"
lodash.some "^4.6.0"

Expand All @@ -660,9 +667,11 @@ babel-plugin-minify-infinity@^0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/babel-plugin-minify-infinity/-/babel-plugin-minify-infinity-0.0.3.tgz#4cc99b61d12b434ce80ad675103335c589cba9a1"

babel-plugin-minify-mangle-names@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/babel-plugin-minify-mangle-names/-/babel-plugin-minify-mangle-names-0.0.6.tgz#7311e82292d5add93ca80c4ecfbde9e8a9730a43"
babel-plugin-minify-mangle-names@^0.0.8:
version "0.0.8"
resolved "https://registry.yarnpkg.com/babel-plugin-minify-mangle-names/-/babel-plugin-minify-mangle-names-0.0.8.tgz#1e2fea856dd742d5697aa26b427e41258a8c5b79"
dependencies:
babel-helper-mark-eval-scopes "^0.0.3"

babel-plugin-minify-numeric-literals@^0.0.1:
version "0.0.1"
Expand All @@ -672,17 +681,17 @@ babel-plugin-minify-replace@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/babel-plugin-minify-replace/-/babel-plugin-minify-replace-0.0.1.tgz#5d5aea7cb9899245248d1ee9ce7a2fe556a8facc"

babel-plugin-minify-simplify@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.0.6.tgz#1d50899b29c3c4503eaefb98365cc5f7a84aedfe"
babel-plugin-minify-simplify@^0.0.8:
version "0.0.8"
resolved "https://registry.yarnpkg.com/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.0.8.tgz#597b23327bba4373fed1c51461a689bce9ff4979"
dependencies:
babel-helper-flip-expressions "^0.0.2"
babel-helper-is-nodes-equiv "^0.0.1"
babel-helper-to-multiple-sequence-expressions "^0.0.3"
babel-helper-to-multiple-sequence-expressions "^0.0.4"

babel-plugin-minify-type-constructors@^0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/babel-plugin-minify-type-constructors/-/babel-plugin-minify-type-constructors-0.0.3.tgz#ab59c1ad835b6b6e8e932b875d4df4dc393d9d26"
babel-plugin-minify-type-constructors@^0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/babel-plugin-minify-type-constructors/-/babel-plugin-minify-type-constructors-0.0.4.tgz#52d8b623775107523227719ade2d0b7458758b5f"
dependencies:
babel-helper-is-void-0 "^0.0.1"

Expand Down Expand Up @@ -1021,7 +1030,7 @@ babel-plugin-transform-member-expression-literals@^6.8.1:
version "6.8.1"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-member-expression-literals/-/babel-plugin-transform-member-expression-literals-6.8.1.tgz#60b78cb2b814ac71dd6104ef51c496c62e877337"

babel-plugin-transform-merge-sibling-variables@^6.8.1:
babel-plugin-transform-merge-sibling-variables@^6.8.2:
version "6.8.2"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-merge-sibling-variables/-/babel-plugin-transform-merge-sibling-variables-6.8.2.tgz#498acd07481ab340c1bad8b726c2fad1b8f644e5"

Expand Down Expand Up @@ -1098,25 +1107,21 @@ babel-plugin-transform-regenerator@^6.6.0:
dependencies:
regenerator-transform "0.9.8"

babel-plugin-transform-regexp-constructors@^0.0.5:
version "0.0.5"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.0.5.tgz#74d95e0c567e6fc1d9c699a084894d40de8e581d"
babel-plugin-transform-regexp-constructors@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.0.6.tgz#0d92607f0d26268296980cb7c1dea5f2dd3e1e20"

babel-plugin-transform-remove-console@^6.8.0:
version "6.8.0"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.8.0.tgz#c4162f01ee169491776e64093f4dad8d61125a90"
dependencies:
babel-runtime "^6.0.0"
babel-plugin-transform-remove-console@^6.8.1:
version "6.8.1"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.8.1.tgz#38f6a6ca1581e76b75fc2c6fdcf909deadee7d6a"

babel-plugin-transform-remove-debugger@^6.8.0:
version "6.8.0"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-remove-debugger/-/babel-plugin-transform-remove-debugger-6.8.0.tgz#d3ece7d8400473f7a706177ba22fd3026ad7e020"
dependencies:
babel-runtime "^6.0.0"
babel-plugin-transform-remove-debugger@^6.8.1:
version "6.8.1"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-remove-debugger/-/babel-plugin-transform-remove-debugger-6.8.1.tgz#aabd0be107f8299094defe8e1ba8ccf4b114d07f"

babel-plugin-transform-remove-undefined@^0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-remove-undefined/-/babel-plugin-transform-remove-undefined-0.0.4.tgz#cc75be04b9bbd7bb2005272cc160b4d08692d77c"
babel-plugin-transform-remove-undefined@^0.0.5:
version "0.0.5"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-remove-undefined/-/babel-plugin-transform-remove-undefined-0.0.5.tgz#12ef11805e06e861dd2eb0c7cc041d2184b8f410"

babel-plugin-transform-runtime@^6.22.0:
version "6.23.0"
Expand Down Expand Up @@ -1149,29 +1154,30 @@ babel-polyfill@^6.22.0, babel-polyfill@^6.6.1:
core-js "^2.4.0"
regenerator-runtime "^0.10.0"

babel-preset-babili@^0.0.10:
version "0.0.10"
resolved "https://registry.yarnpkg.com/babel-preset-babili/-/babel-preset-babili-0.0.10.tgz#59118924b77b898eecd8f75a5b97d694719443ff"
babel-preset-babili@^0.0.12:
version "0.0.12"
resolved "https://registry.yarnpkg.com/babel-preset-babili/-/babel-preset-babili-0.0.12.tgz#74d79205d54feae6470bc84231da0b9ac9fc7de9"
dependencies:
babel-plugin-minify-constant-folding "^0.0.3"
babel-plugin-minify-dead-code-elimination "^0.1.2"
babel-plugin-minify-builtins "^0.0.2"
babel-plugin-minify-constant-folding "^0.0.4"
babel-plugin-minify-dead-code-elimination "^0.1.4"
babel-plugin-minify-flip-comparisons "^0.0.2"
babel-plugin-minify-guarded-expressions "^0.0.4"
babel-plugin-minify-infinity "^0.0.3"
babel-plugin-minify-mangle-names "^0.0.6"
babel-plugin-minify-mangle-names "^0.0.8"
babel-plugin-minify-numeric-literals "^0.0.1"
babel-plugin-minify-replace "^0.0.1"
babel-plugin-minify-simplify "^0.0.6"
babel-plugin-minify-type-constructors "^0.0.3"
babel-plugin-minify-simplify "^0.0.8"
babel-plugin-minify-type-constructors "^0.0.4"
babel-plugin-transform-inline-consecutive-adds "^0.0.2"
babel-plugin-transform-member-expression-literals "^6.8.1"
babel-plugin-transform-merge-sibling-variables "^6.8.1"
babel-plugin-transform-merge-sibling-variables "^6.8.2"
babel-plugin-transform-minify-booleans "^6.8.0"
babel-plugin-transform-property-literals "^6.8.1"
babel-plugin-transform-regexp-constructors "^0.0.5"
babel-plugin-transform-remove-console "^6.8.0"
babel-plugin-transform-remove-debugger "^6.8.0"
babel-plugin-transform-remove-undefined "^0.0.4"
babel-plugin-transform-regexp-constructors "^0.0.6"
babel-plugin-transform-remove-console "^6.8.1"
babel-plugin-transform-remove-debugger "^6.8.1"
babel-plugin-transform-remove-undefined "^0.0.5"
babel-plugin-transform-simplify-comparison-operators "^6.8.1"
babel-plugin-transform-undefined-to-void "^6.8.0"
lodash.isplainobject "^4.0.6"
Expand Down Expand Up @@ -1378,12 +1384,12 @@ babel-types@^6.15.0, babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.22
lodash "^4.2.0"
to-fast-properties "^1.0.1"

babili-webpack-plugin@^0.0.9:
version "0.0.9"
resolved "https://registry.yarnpkg.com/babili-webpack-plugin/-/babili-webpack-plugin-0.0.9.tgz#9bdb3041cea93cc38259e140e1bd7741f4877337"
babili-webpack-plugin@^0.0.11:
version "0.0.11"
resolved "https://registry.yarnpkg.com/babili-webpack-plugin/-/babili-webpack-plugin-0.0.11.tgz#09571593b81bbcc3033e8570540b391e98801803"
dependencies:
babel-core "^6.22.1"
babel-preset-babili "^0.0.10"
babel-core "^6.23.1"
babel-preset-babili "^0.0.12"
webpack-sources "^0.1.4"

babylon@^6.11.0, babylon@^6.13.0, babylon@^6.15.0:
Expand Down Expand Up @@ -4639,6 +4645,10 @@ jsesc@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b"

jsesc@^2.4.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.4.0.tgz#8568d223ff69c0b5e081b4f8edf5a23d978c9867"

jsesc@~0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d"
Expand Down

0 comments on commit 86f53c2

Please sign in to comment.