Skip to content

fix(processor): resolve metadata extraction failure on Vercel#179

Merged
avivkeller merged 1 commit into
webpack:mainfrom
moshams272:fix/metadata-source-path
Jul 13, 2026
Merged

fix(processor): resolve metadata extraction failure on Vercel#179
avivkeller merged 1 commit into
webpack:mainfrom
moshams272:fix/metadata-source-path

Conversation

@moshams272

Copy link
Copy Markdown
Contributor

Summary

The Edit this page link works locally well, but in Vercel it doesn't. After debugging, I found in the file plugins/processor/source.mjs that:

export const applySourceMetadata = (
  project,
  { libDir = './webpack/lib' } = {}
) => {
  const absoluteLibDir = resolve(libDir);
  if (!existsSync(absoluteLibDir) || !statSync(absoluteLibDir).isDirectory()) {
    return;
  }
...}

The existsSync function works well locally, as there is a webpack repo in the root path, but we don't have it in vercel.

This PR uses the cached repo instead of that one in the root path.

@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-doc-kit Ready Ready Preview, Comment Jul 13, 2026 7:45am

Request Review

Comment thread plugins/processor/index.mjs Outdated
@moshams272 moshams272 force-pushed the fix/metadata-source-path branch from ff9e7f5 to 11dd39b Compare July 13, 2026 07:43
@avivkeller avivkeller merged commit 5af0fdb into webpack:main Jul 13, 2026
10 checks passed
@moshams272 moshams272 deleted the fix/metadata-source-path branch July 14, 2026 02:36
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