KazariEX's Avatar

KazariEX

@bikari.top

120
Followers
62
Following
11
Posts
17.10.2024
Joined
Posts Following

Latest posts by 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.

05.07.2025 16:15 👍 2 🔁 0 💬 1 📌 0

You can load TS or ESM files by jiti, we believe that having it built-in will lead to excessive code coupling.

01.03.2025 13:12 👍 0 🔁 0 💬 0 📌 0

Is the ESM required for your use case?

01.03.2025 12:59 👍 0 🔁 0 💬 1 📌 0

It's readonly so we should not modify it.

01.03.2025 11:40 👍 0 🔁 0 💬 0 📌 0

You can access ast by "sfc.scriptSetup.ast". Yeah, I also hope to support ESM as soon as possible. This will take some time.

01.03.2025 11:05 👍 1 🔁 0 💬 1 📌 0

If you want to avoid manual processing, you can refer to github.com/vue-macros/v...

01.03.2025 06:06 👍 0 🔁 0 💬 1 📌 0

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!

28.02.2025 11:20 👍 1 🔁 0 💬 2 📌 0

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:

28.02.2025 11:18 👍 0 🔁 0 💬 1 📌 0
Preview
language-tools/packages/language-core/lib/plugins at master · vuejs/language-tools ⚡ High-performance Vue language tooling based-on Volar.js - vuejs/language-tools

Yes, you can refer to the specific way of writing plugins at github.com/vuejs/langua....

28.02.2025 11:16 👍 0 🔁 0 💬 0 📌 0
Post image

Just use it like this in tsconfig.json:

28.02.2025 08:21 👍 3 🔁 0 💬 1 📌 0

I think we could introduce a hook that extends composables' types (Just like `useTemplateRef` but customizable)

28.02.2025 07:04 👍 1 🔁 0 💬 1 📌 0