KazariEX
banner
bikari.top
KazariEX
@bikari.top
We intentionally do not support skipping dts when going to definition outside of templates, as that somewhat goes beyond Vue’s responsibilities.
July 5, 2025 at 4:15 PM
You can load TS or ESM files by jiti, we believe that having it built-in will lead to excessive code coupling.
March 1, 2025 at 1:12 PM
Is the ESM required for your use case?
March 1, 2025 at 12:59 PM
It's readonly so we should not modify it.
March 1, 2025 at 11:40 AM
You can access ast by "sfc.scriptSetup.ast". Yeah, I also hope to support ESM as soon as possible. This will take some time.
March 1, 2025 at 11:05 AM
If you want to avoid manual processing, you can refer to github.com/vue-macros/v...
github.com
March 1, 2025 at 6:06 AM
In the "resolveEmbeddedCode" hook, filter for "embeddedFile" with id starting with "script_", then search for the string "useRoute" in its content and insert some code; you can use the Volar Lab extension to view the final generated virtual code. This should serve as a temporary debugging way!
February 28, 2025 at 11:20 AM
It's worth mentioning that the main part of transforming Vue code into virtual code is itself a plugin, so I haven't thought of a good way to write plugins for plugins yet; however, we can now use a somewhat hacky way to modify the virtual code after it has been generated. So we can try this:
February 28, 2025 at 11:18 AM
Yes, you can refer to the specific way of writing plugins at github.com/vuejs/langua....
language-tools/packages/language-core/lib/plugins at master · vuejs/language-tools
⚡ High-performance Vue language tooling based-on Volar.js - vuejs/language-tools
github.com
February 28, 2025 at 11:16 AM
Just use it like this in tsconfig.json:
February 28, 2025 at 8:21 AM
I think we could introduce a hook that extends composables' types (Just like `useTemplateRef` but customizable)
February 28, 2025 at 7:04 AM