Skip to content

Fix profiler-plugin-react entry point#16

Open
sugarmanz wants to merge 2 commits into
mainfrom
fix/profiler-react-entry
Open

Fix profiler-plugin-react entry point#16
sugarmanz wants to merge 2 commits into
mainfrom
fix/profiler-react-entry

Conversation

@sugarmanz

@sugarmanz sugarmanz commented Jun 29, 2026

Copy link
Copy Markdown
Member

What's changing

Fixes a broken build entry point in @player-devtools/profiler-plugin-react.

package.json declared "main": "src/index.tsx", but the source file is src/index.ts (it contains no JSX — just a class extending ReactDevtoolsPlugin). tsup derives its entry from main, so the build fails with:

Cannot find src/index.tsx

This shipped with the profiler plugin and is currently failing on main. The fix points main at the real .ts file, matching @player-devtools/basic-plugin-react (whose entry is also src/index.ts).

Change Type (required)

  • patch
  • minor
  • major

Tests

bazel build //devtools/plugins/profiler/react:react completes successfully (previously failed with Cannot find src/index.tsx).

📦 Published PR as canary version: 0.13.1--canary.16.915

Try this version out locally by upgrading relevant packages to 0.13.1--canary.16.915

The package.json "main" pointed at src/index.tsx, but the source file is
src/index.ts (no JSX), so the tsup build failed with "Cannot find
src/index.tsx". Point main at the real .ts file, matching basic-plugin-react.
@sugarmanz sugarmanz requested a review from a team as a code owner June 29, 2026 14:39
@sugarmanz

Copy link
Copy Markdown
Member Author

/canary

Package.swift declares the PlayerUIDevtoolsProfilerPlugin and
PlayerUIDevtoolsBaseProfilerDevtoolsPlugin products, but assemble_ios_release
never listed the profiler sources/resources, so the published devtools-ios tag
(e.g. 0.14.0-next.0) declared the products while shipping no source for them —
making them unbuildable for consumers.

Add the missing entries (ios Sources, swiftui Sources, and the core native
bundle as Resources) to spm_publish_zip, mirroring the BasicPlugin block.
Verified the assembled zip now contains the profiler swift sources and the
ProfilerDevtoolsPlugin.native.js resource bundle.
@sugarmanz

Copy link
Copy Markdown
Member Author

/canary

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.

2 participants