Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack5 cache not working as expected #1107

Open
willson-wang opened this issue Aug 30, 2023 · 0 comments
Open

webpack5 cache not working as expected #1107

willson-wang opened this issue Aug 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@willson-wang
Copy link

Using ncc@0.36.1 version, this is a reproduction demo
Step 1: git clone demo
Step 2: yarn install
Step 3: Modify infrastructureLogging in node_modules/@vercel/ncc/dist/ncc/index.js.cache.js: {debug: /webpack.cache/} to print the webpack cache log
Step 4: yarn build executes the first build
Step 5: Without making any file changes, yarn build executes the second build
Step 6: Without making any file changes, yarn build executes the third build

You will find that after the second time, the build cache will change every time. You can see from the cache log [but build dependencies have changed.]
image

The expected result is that webpack5 cache can work as expected, and the cache will not be reused every time it is built.

@styfle styfle added the bug Something isn't working label Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants