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

The hash of the unchanged file has changed #15172

Closed
7 tasks done
rextao opened this issue Nov 29, 2023 · 1 comment
Closed
7 tasks done

The hash of the unchanged file has changed #15172

rextao opened this issue Nov 29, 2023 · 1 comment

Comments

@rextao
Copy link

rextao commented Nov 29, 2023

Describe the bug

I have a simple example using the following package.json information

  {
    "dependencies": {
      "vue": "^3.3.8"
    },
    "devDependencies": {
      "@vitejs/plugin-vue": "^4.2.3",
      "vite": "^4.5.0"
    }
  }

Code

App.vue

<template>
  <A></A>
  <B></B>
</template>

<script lang="ts" >
import {defineComponent} from 'vue'
export default defineComponent({
  components : {
    A: import('./A.vue'),
    B: import('./B.vue')
  }
})
</script>

A.vue

<template>
    <div>A</div>
</template>

B.vue

<template>
    <div>B</div>
</template>

when i change A.vue content A to AAAAAAAAAAAAAA , B.vue has not changed. npm run build,The B.vue packaging result file name hash has also changed; But I wouldn't have such problem using webpack

Reproduction

none

Steps to reproduce

No response

System Info

System:
    OS: macOS 13.0.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 28.20 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 17.0.0 - ~/.nvm/versions/node/v17.0.0/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 8.1.0 - ~/.nvm/versions/node/v17.0.0/bin/npm
    pnpm: 8.6.3 - ~/.nvm/versions/node/v17.0.0/bin/pnpm
  Browsers:
    Chrome: 119.0.6045.159
    Safari: 16.1

Used Package Manager

npm

Logs

No response

Validations

@bluwy
Copy link
Member

bluwy commented Nov 29, 2023

Duplicate of #6773

@bluwy bluwy marked this as a duplicate of #6773 Nov 29, 2023
@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants