You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comment out the first line of src/content.js and uncomment the second
yarn build
Expected Behavior
The bundle size for content.*.chunk.js should have a diff.
Actual Behavior
Build before change:
...
File sizes after gzip:
48.61 KB build/static/js/main.b6cc0832.js
288 B build/static/css/main.cacbacc7.css
177 B build/static/js/content.4f2061bf.chunk.js
...
Build after change:
...
File sizes after gzip:
48.61 KB (-1 B) build/static/js/main.b3f3c0af.js
288 B build/static/css/main.cacbacc7.css
180 B build/static/js/content.c58cbe0c.chunk.js
...
Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
I'm sorry, I did not try, but I believe the problem is not with NPM.
Which terms did you search for in User Guide?
Permutations of: chunk size diff printFileSizesAfterBuild
Environment
node -v
: v8.3.0npm -v
: 5.3.0yarn --version
(if you use Yarn): 0.27.5npm ls react-scripts
(if you haven’t ejected): react-scripts@1.0.12Then, specify:
Steps to Reproduce
(Write your steps here:)
git clone git@github.com:esturcke/cra-chunk-bundle-diff-bug.git
cd cra-chunk-bundle-diff-bug
yarn build
src/content.js
and uncomment the secondyarn build
Expected Behavior
The bundle size for
content.*.chunk.js
should have a diff.Actual Behavior
Build before change:
Build after change:
Reproducible Demo
See repo cra-chunk-bundle-diff-bug.
Fix
I think the problem is in the regex stripping out the file hashes:
The text was updated successfully, but these errors were encountered: