Subscribe on changes!

(compiler-sfc): <script setup> - Import usage analyzer doesn't resolve dynamic arguments in non-inline mode

avatar
Jun 10th 2023

Vue version

3.3.4

Link to minimal reproduction

https://play.vuejs.org/#__DEV__eNqFUctuwjAQ/JWVe+BCbAluaahAfEAvvTU9hGSB0Pgh26GVUP69ayfQABW9RNqZ3ZnJ+MRWxvBjiyxlmSttbTw49K2BplC7Rc68y9lLrmpptPVwAotb6GBrtYQJnU1G1Bs6P43f183hssQFqlZy735X11qaCxuGEIDoTPQJyI8Gj9I0hUeaALJ48/Qe1Pl6XzfVR8QB4hBXotTdNmXhK6X9Hu35ZBivjjJx8WNTdg71TyuPArtGe1CFRFovY0YG4p4qhiw9eZ1iKI5C4HcsLgCxYDgFofjrsIBJ1J9MAzb8W0AH6YB3IeAgUmpFAudnWoyk0r+UCBwLPeeKkvUPmcjC8IPTihJGlXwgqJ201w0Y9RjmnO29Ny4VolXmc8dLLcWSOGFb5WuJSaXlcs5nfDYXVe38GOfoZLKx+suhJcecxYSDuCDwiDaxqCq0ocsHZje7V4Y33J1p8KQmO9b9AN3rF8I=

Steps to reproduce

Steps to reproduce the bug from scratch (repro already has this covered):

  1. Import an object/enum from another file.
  2. Try to use their keys as a source of dynamic attribute name or slot name in