FormidableLabs / inspectpack

An inspection tool for Webpack frontend JavaScript bundles.
MIT License
592 stars 20 forks source link

MAJOR: Add `DuplicatesPlugin`, versions ranges #88

Closed ryan-roemer closed 6 years ago

ryan-roemer commented 6 years ago

Work

Breaking changes

Try it out

Download this branch:

# In one terminal
$ yarn build-test
$ yarn watch

# In another
$ export WEBPACK_VERSION=4; \
  TODO_DUP_CHECKER=true \
  WEBPACK_MODE=development \
  WEBPACK_CWD=../../test/fixtures/duplicates-cjs \
  NODE_PATH="${PWD}/node_modules/webpack${WEBPACK_VERSION}/node_modules:${PWD}/node_modules" \
  node test/fixtures/packages/webpack.js \
  --config ../../test/fixtures/config/webpack.config.js

You can replace duplicates-cjs with any other scenario from our test fixtures directory

codecov[bot] commented 6 years ago

Codecov Report

Merging #88 into master will increase coverage by 0.67%. The diff coverage is 88.38%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #88      +/-   ##
==========================================
+ Coverage   89.35%   90.03%   +0.67%     
==========================================
  Files          11       14       +3     
  Lines         498      662     +164     
  Branches       78      105      +27     
==========================================
+ Hits          445      596     +151     
- Misses         37       38       +1     
- Partials       16       28      +12
Impacted Files Coverage Δ
src/lib/actions/duplicates.ts 94.66% <ø> (ø) :arrow_up:
src/lib/actions.ts 66.66% <ø> (+66.66%) :arrow_up:
src/lib/actions/versions.ts 95.2% <100%> (+0.27%) :arrow_up:
src/plugin/duplicates.ts 86.99% <86.99%> (ø)
src/lib/util/dependencies.ts 94.92% <87.5%> (-0.98%) :arrow_down:
src/lib/util/files.ts 80% <0%> (-6.67%) :arrow_down:
src/lib/util/strings.ts 100% <0%> (ø) :arrow_up:
src/lib/index.ts 100% <0%> (ø)
src/lib/interfaces/modules.ts 100% <0%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a473c50...e54fecc. Read the comment docs.