Skip to content

fix(config): inject provider globals safely - #6986

Open
omercnet wants to merge 1 commit into
anomalyco:devfrom
omercnet:fix/6979-provider-inject
Open

fix(config): inject provider globals safely#6986
omercnet wants to merge 1 commit into
anomalyco:devfrom
omercnet:fix/6979-provider-inject

Conversation

@omercnet

Copy link
Copy Markdown

Related Issues

Fixes: #6979

In a Nutshell

  • Inject provider globals through esbuild
  • Prevent dependency binding collisions

Description

Provider and SST globals now come from a virtual esbuild inject module instead of source text prepended to every bundled module. This preserves global access in sst.config.ts while allowing dependencies to declare matching top-level names, with a regression test covering the collision.

Must

  • Tests
  • Documentation (not applicable)

Co-Authored-By: Claude <noreply@anthropic.com>
@omercnet
omercnet force-pushed the fix/6979-provider-inject branch from 9a54002 to 1f9eeae Compare August 28, 2026 20:43
@omercnet

Copy link
Copy Markdown
Author

CI is awaiting maintainer approval for this fork pull request: https://github.com/anomalyco/sst/actions/runs/33209427058

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.

Provider-global imports are prepended to node_modules sources, breaking packages that declare a matching name

1 participant