Skip to content

fix: remove export namespace Babel transform#183

Merged
V3RON merged 1 commit into
mainfrom
fix/remove-export-namespace-transform
Jun 5, 2026
Merged

fix: remove export namespace Babel transform#183
V3RON merged 1 commit into
mainfrom
fix/remove-export-namespace-transform

Conversation

@V3RON
Copy link
Copy Markdown
Contributor

@V3RON V3RON commented Jun 5, 2026

What is this?

This PR removes Voltra's direct need for @babel/plugin-transform-export-namespace-from in React Native CLI projects. The iOS and Android package entrypoints keep exporting the same Voltra and VoltraAndroid namespaces, but no longer use the export * as syntax that requires that Babel transform.

How does it work?

The package entrypoints now import their primitives barrels as namespace objects and re-export those bindings explicitly. The root Babel config and direct dev dependency on the namespace export transform are removed because Voltra source no longer uses that syntax.

Why is this useful?

React Native CLI apps can consume Voltra without needing to install or configure an extra Babel plugin for namespace exports. The public package API stays the same while the Babel setup becomes simpler and less fragile.

Replace package entrypoint namespace exports with explicit namespace object exports so React Native CLI projects do not need the export namespace Babel plugin.
@V3RON V3RON merged commit 8f5234e into main Jun 5, 2026
12 checks passed
@V3RON V3RON deleted the fix/remove-export-namespace-transform branch June 5, 2026 07:29
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