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
This is a vue project that uses vue and Vue-router. There are two pages for this project, about.vue and help.vue. Both about.vue and help.vue import useRoute and useRouter from the vue-router and use the two methods, respectively. In this project, vue and Vue-router are packaged into vendor.[contexthash].js. When the variable about.vue imported from the vute-router changed, it changed from useRoute and useRouter to useRoute. Changes in the vendor.[contexthash].js file were found during repackaging. The content found to change is the exported variable in vendor.[contexthash].js, among which the order of three variables has changed.
In my opinion, modification based on the above behavior should not happen. If no useRouter is imported into the entire application, tree-shake will occur at this time, resulting in changes in the vendor.[contexthash].js file is normal.
Actual Behaviour
This is a vue project that uses vue and Vue-router. There are two pages for this project, about.vue and help.vue. Both about.vue and help.vue import useRoute and useRouter from the vue-router and use the two methods, respectively. In this project, vue and Vue-router are packaged into vendor.[contexthash].js. When the variable about.vue imported from the vute-router changed, it changed from useRoute and useRouter to useRoute. Changes in the vendor.[contexthash].js file were found during repackaging. The content found to change is the exported variable in vendor.[contexthash].js, among which the order of three variables has changed.
In my opinion, modification based on the above behavior should not happen. If no useRouter is imported into the entire application, tree-shake will occur at this time, resulting in changes in the vendor.[contexthash].js file is normal.
The text was updated successfully, but these errors were encountered:
Rollup Version
"version": "3.9.1"
Operating System (or Browser)
browser
Node Version (if applicable)
v18.9.0
Link To Reproduction
https://github.com/meizilove258/vite-code-split2.git
Expected Behaviour
This is a vue project that uses vue and Vue-router. There are two pages for this project, about.vue and help.vue. Both about.vue and help.vue import useRoute and useRouter from the vue-router and use the two methods, respectively. In this project, vue and Vue-router are packaged into vendor.[contexthash].js. When the variable about.vue imported from the vute-router changed, it changed from useRoute and useRouter to useRoute. Changes in the vendor.[contexthash].js file were found during repackaging. The content found to change is the exported variable in vendor.[contexthash].js, among which the order of three variables has changed.
In my opinion, modification based on the above behavior should not happen. If no useRouter is imported into the entire application, tree-shake will occur at this time, resulting in changes in the vendor.[contexthash].js file is normal.
Actual Behaviour
This is a vue project that uses vue and Vue-router. There are two pages for this project, about.vue and help.vue. Both about.vue and help.vue import useRoute and useRouter from the vue-router and use the two methods, respectively. In this project, vue and Vue-router are packaged into vendor.[contexthash].js. When the variable about.vue imported from the vute-router changed, it changed from useRoute and useRouter to useRoute. Changes in the vendor.[contexthash].js file were found during repackaging. The content found to change is the exported variable in vendor.[contexthash].js, among which the order of three variables has changed.
In my opinion, modification based on the above behavior should not happen. If no useRouter is imported into the entire application, tree-shake will occur at this time, resulting in changes in the vendor.[contexthash].js file is normal.
The text was updated successfully, but these errors were encountered: