Skip to content

perf: import video types directly - #5079

Open
OskarEichler wants to merge 1 commit into
TheWidlarzGroup:support/6.x.xfrom
OskarEichler:codex/use-direct-video-type-imports
Open

perf: import video types directly#5079
OskarEichler wants to merge 1 commit into
TheWidlarzGroup:support/6.x.xfrom
OskarEichler:codex/use-direct-video-type-imports

Conversation

@OskarEichler

Copy link
Copy Markdown

Improvements

Import runtime enums and erased types directly from their defining modules in the native and web components.

The public ./types barrel re-exports every event, enum, and video type. Importing runtime values through it makes Metro evaluate unrelated re-export modules during component startup; direct imports keep the internal dependency graph smaller while preserving the package's public barrel API.

Regression coverage

The v6 branch has no test suite (yarn test reports no test available). Verified with:

  • YARN_NODE_LINKER=node-modules yarn prettier --check src/Video.tsx src/Video.web.tsx
  • YARN_NODE_LINKER=node-modules yarn build
  • YARN_NODE_LINKER=node-modules yarn lint
  • React Doctor on both changed components (no findings)
  • git diff --check

Breaking changes

None. Public exports are unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

1 participant