Skip to content

feat: use a unique name for the exports condition for source#948

Merged
satya164 merged 1 commit into
mainfrom
@satya164/source-condition
Jun 16, 2026
Merged

feat: use a unique name for the exports condition for source#948
satya164 merged 1 commit into
mainfrom
@satya164/source-condition

Conversation

@satya164

@satya164 satya164 commented Jun 16, 2026

Copy link
Copy Markdown
Member

This is a breaking change for libraries that use react-native-builder-bob/vite-config

They now must add the custom condition to their vite config. To preserve existing behavior, add conditions: ['source'] under resolve:

  export default defineConfig((env) =>
    mergeConfig(config(env), {
      resolve: {
        alias: {
          [pack.name]: new URL('..', import.meta.url),
        },
+       conditions: ['source'],
        dedupe: Object.keys(pack.peerDependencies),
      },
    })
  );

@satya164 satya164 force-pushed the @satya164/source-condition branch from c8fb0a2 to 288f30b Compare June 16, 2026 11:32
@satya164 satya164 merged commit 95bd4a2 into main Jun 16, 2026
26 checks passed
@satya164 satya164 deleted the @satya164/source-condition branch June 16, 2026 11:56
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