Skip to content

fix(vite-plugin-webmcp): normalize Windows path for include matching#2

Open
nblog wants to merge 1 commit into
alibaba:mainfrom
nblog:fix/windows-path-separator-include-match
Open

fix(vite-plugin-webmcp): normalize Windows path for include matching#2
nblog wants to merge 1 commit into
alibaba:mainfrom
nblog:fix/windows-path-separator-include-match

Conversation

@nblog

@nblog nblog commented Jun 19, 2026

Copy link
Copy Markdown

Summary

  • normalize
    elativePath to use / before include pattern matching
  • fix Windows path separator mismatch causing WebMCP schema injection to be skipped

Root Cause

On Windows, path.relative() returns backslashes (e.g. src\main.tsx), but include patterns (e.g. src/**/*.tsx) are matched as forward-slash globs.

Validation

  • rebuilt plugin: pnpm build:plugin
  • confirmed generated bundle contains __webmcpSchema = assignments

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.

1 participant