Skip to content

fix webpack PDF worker resolution - #486

Merged
bourgeoa merged 3 commits into
stagingfrom
fix/pdf
Nov 26, 2026
Merged

bourgeoa merged 3 commits into
stagingfrom
fix/pdf

Conversation

@SharonStrats

Copy link
Copy Markdown
Contributor

No description provided.

@SharonStrats SharonStrats self-assigned this Nov 26, 2026
Copilot AI balanced review requested due to automatic review settings November 26, 2026 21:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The snapshot lacks the PDF worker consumer and pinned dependencies needed to validate the worker URL contract, browser rendering, and compatibility after removing automatic global Buffer injection.

No open issues 🎉

What changed in this PR

This PR updates Mashlib’s webpack configuration to emit the PDF worker as a separate asset and make buffer resolution explicit.

Changes:

  • Treat pdf.worker.min.mjs as an asset/resource.
  • Add an exact buffer alias in both package and workspace resolution modes.
  • Exclude buffer and Buffer from NodePolyfillPlugin polyfills.
File Description
webpack.config.mjs Adds PDF worker asset handling and adjusts buffer aliases and polyfills.

Review effort: Balanced

@bourgeoa
bourgeoa merged commit 526b4df into staging Nov 26, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants