Skip to content

feat: extend Twoslash Vue options support to allow custom options#79

Merged
Adammatthiesen merged 9 commits into
mainfrom
adam/twoslash-vue-fix
Feb 21, 2026
Merged

feat: extend Twoslash Vue options support to allow custom options#79
Adammatthiesen merged 9 commits into
mainfrom
adam/twoslash-vue-fix

Conversation

@Adammatthiesen

Copy link
Copy Markdown
Member

This pull request extends the expressive-code-twoslash package to support passing custom options to the Vue Twoslasher function, allowing users to customize the behavior of the twoslash-vue preprocessor. The changes introduce a new twoslashVueOptions property, update documentation, and define a Vue-specific options type to ensure only relevant options are forwarded.

Vue Twoslash customization:

  • Added support for passing custom options to the Vue Twoslasher by introducing the twoslashVueOptions property in the PluginTwoslashOptions interface, enabling users to customize twoslash-vue behavior. [1] [2]
  • Updated the Twoslasher instance creation logic to merge standard Twoslash options with Vue-specific options when initializing the Vue Twoslasher.

Type definitions and documentation:

  • Defined the VueSpecificTwoslashOptions type, which omits standard Twoslash options from CreateTwoslashVueOptions to ensure only Vue-specific options are included.
  • Documented the new twoslashVueOptions property and the VueSpecificTwoslashOptions type in the configuration reference, providing usage instructions and linking to external documentation.

Release notes:

  • Added a patch changeset describing the extension of Twoslash Vue support to allow passing custom options.

@changeset-bot

changeset-bot Bot commented Feb 21, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ea2028d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
expressive-code-twoslash Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Feb 21, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/withstudiocms/expressive-code-twoslash/css-js-gen@79
npm i https://pkg.pr.new/withstudiocms/expressive-code-twoslash@79

commit: ea2028d

@Adammatthiesen Adammatthiesen marked this pull request as ready for review February 21, 2026 06:20
@Adammatthiesen Adammatthiesen requested a review from a team as a code owner February 21, 2026 06:20
Base automatically changed from adam/improve-docs to main February 21, 2026 07:42
@htg-1-studiocms-cloud

htg-1-studiocms-cloud Bot commented Feb 21, 2026

Copy link
Copy Markdown

Dokploy Preview Deployment

Name Status Preview Updated (UTC)
Expressive-Code-Twoslash Docs ✅ Done Preview URL 2026-02-21T07:47:18.308Z

@apollo-git-bot

Copy link
Copy Markdown
Contributor

Allure Report Summary

Name Duration Stats New Flaky Retry Report
css-js-gen Tests 9ms Passed tests 37 37 0 0

@Adammatthiesen Adammatthiesen merged commit b323683 into main Feb 21, 2026
12 checks passed
@Adammatthiesen Adammatthiesen deleted the adam/twoslash-vue-fix branch February 21, 2026 07:59
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.

2 participants