feat(language-core): support configuration for language plugins#5678
Merged
KazariEX merged 4 commits intovuejs:masterfrom Jan 23, 2026
Merged
feat(language-core): support configuration for language plugins#5678KazariEX merged 4 commits intovuejs:masterfrom
KazariEX merged 4 commits intovuejs:masterfrom
Conversation
vue-component-meta
vue-component-type-helpers
@vue/language-core
@vue/language-plugin-pug
@vue/language-server
@vue/language-service
vue-tsc
@vue/typescript-plugin
commit: |
94bf3a8 to
9fc27c5
Compare
32357f7 to
63ed6d3
Compare
ee9f2e4 to
ab594f1
Compare
Member
|
Is there a way to type the options? currently doing const plugin: VueLanguagePlugin = ({
compilerOptions,
modules: { typescript: ts },
...options
}) => {
// rootDir comes from plugin options (vuejs/language-tools#5678)
const optionsRootDir = (options as { rootDir?: string }).rootDir
// Prioritize plugin options over tsconfig
const rootDir = optionsRootDir ?? compilerOptions.rootDir |
KazariEX
commented
Jan 24, 2026
Member
|
What's the syntax to make it work? It doesn't seem to recognize the name when I try it this way: "plugins": [
"unplugin-vue-router/volar/sfc-route-blocks",
"unplugin-vue-router/volar/sfc-typed-router" // works
// does not work
// {
// "name": "unplugin-vue-router/volar/sfc-typed-router",
// "options": { "rootDir": "." }
// }
] |
Member
Author
|
The value of |
Member
|
ah so it would be Testing this at vuejs/router#2603 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR allows us to provide configuration for the Vue language plugins in the same way as the TypeScript language plugins.
{ "vueCompilerOptions": { "plugins": [ { "name": "...", "options": { "foo": "bar" } } ] } }