Skip to content

fix(web): bundle p-retry into dist/web browser build - #1835

Open
edenbuilds wants to merge 2 commits into
googleapis:mainfrom
edenbuilds:fix/web-bundle-p-retry-1330
Open

fix(web): bundle p-retry into dist/web browser build#1835
edenbuilds wants to merge 2 commits into
googleapis:mainfrom
edenbuilds:fix/web-bundle-p-retry-1330

Conversation

@edenbuilds

Copy link
Copy Markdown

Summary

  • Web Rollup target now uses @rollup/plugin-node-resolve and no longer marks p-retry as external, so dist/web/index.mjs has no bare "p-retry" specifier.
  • Node/CJS builds unchanged (still externalize p-retry).

Test plan

  • Published dist/web/index.mjs contains from 'p-retry'; bundling with p-retry inlined removes that bare import.
  • Rollup web config: external excludes p-retry; plugins include node-resolve.

Fixes #1330

@google-cla

google-cla Bot commented Aug 6, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

The web Rollup output left a bare "p-retry" import, which browsers
cannot resolve. Resolve and inline p-retry for the web target only.

Fixes googleapis#1330
@edenbuilds
edenbuilds force-pushed the fix/web-bundle-p-retry-1330 branch from a7c3a41 to 60083da Compare August 7, 2026 18:38
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.

Web build ships bare p-retry import, breaks in browsers

1 participant