Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support nested plugins #3530

Merged
merged 4 commits into from Sep 6, 2023
Merged

Conversation

so1ve
Copy link
Member

@so1ve so1ve commented Sep 2, 2023

close #3437, supersedes #3528

@so1ve so1ve changed the title feat: nested plugins feat: support nested plugins Sep 2, 2023
@so1ve
Copy link
Member Author

so1ve commented Sep 3, 2023

Currently I simply flatten all nested plugins. @sxzz How should we handle nested plugins with circular references? How does vite handle that case?

@sxzz
Copy link
Member

sxzz commented Sep 3, 2023

Could you please make an example for me?

@so1ve
Copy link
Member Author

so1ve commented Sep 3, 2023

Ugh. For example:

const plugin = []

plugin.push(plugin)

Calling flat(Infinity) on such array will throw in both runtime and type-level.

@sxzz
Copy link
Member

sxzz commented Sep 3, 2023

@so1ve Vite and rollup won't handle this case. It's not a valid usage.

@johnsoncodehk johnsoncodehk merged commit e9d1f3e into vuejs:master Sep 6, 2023
3 checks passed
@johnsoncodehk
Copy link
Member

Thanks!

@so1ve so1ve deleted the feat/nested-plugin branch September 6, 2023 05:05
rchl added a commit to rchl/vue-language-tools that referenced this pull request Sep 6, 2023
* master:
  feat: support nested plugins (vuejs#3530)
  chore: add formatter for vue files (vuejs#3532)
  chore: add test for defineExpose
  Update README.md (vuejs#3486)
  doc: fix typo (vuejs#3461)
  chore: support custom configPath for createParsedCommandLineByJson (vuejs#3456)
  fix: correctly hyphen-case props (vuejs#3424)
  feat: Add Portuguese language (vuejs#3535)
  chore: format
  refactor: use volar services via a better interop way
  chore: bump volar services
  refactor: clear up tsconfigs
  chore: update sponsor
  chore: remove `resolution-mode=highest` for pnpm 8.7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support nested plugins
3 participants