Skip to content

fix: should invalidate cache when lockfiles have updated #3865

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

Merged
merged 1 commit into from
Apr 27, 2019

Conversation

haoqunjiang
Copy link
Member

closes #3635

@haoqunjiang haoqunjiang merged commit 4f74b27 into vuejs:dev Apr 27, 2019
haoqunjiang added a commit to haoqunjiang/vue-cli that referenced this pull request Jan 28, 2020
pksunkara pushed a commit that referenced this pull request Jan 30, 2020
* fix: correctly calculate cacheIdentifier from lockfiles

follow up of #3865
fixes #4438

* Revert "fix: correctly calculate cacheIdentifier from lockfiles"

This reverts commit dbce88b.

* fix: should take all configFiles and lockfiles into account

The previous implementation is based on the assumption that config files
have precendences, e.g. `.eslintrc.js` will take higher precendence
over `.eslintrc`, and only one will take effect.

This is not accurate however. For example, babel relies on both babel
config and browserslist config, so we need to deal with 2 config files.
mactanxin pushed a commit to mactanxin/vue-cli that referenced this pull request Feb 11, 2020
* fix: correctly calculate cacheIdentifier from lockfiles

follow up of vuejs#3865
fixes vuejs#4438

* Revert "fix: correctly calculate cacheIdentifier from lockfiles"

This reverts commit dbce88b.

* fix: should take all configFiles and lockfiles into account

The previous implementation is based on the assumption that config files
have precendences, e.g. `.eslintrc.js` will take higher precendence
over `.eslintrc`, and only one will take effect.

This is not accurate however. For example, babel relies on both babel
config and browserslist config, so we need to deal with 2 config files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vue-loader会缓存node_modules中的npm包导致更新npm包后每次启动都是缓存中的版本问题
1 participant