Skip to content

Restore #6206: Import Preact from @uppy/utils to guarantee a single version#6344

Open
qxprakash wants to merge 5 commits into
mainfrom
restore/pr-6206
Open

Restore #6206: Import Preact from @uppy/utils to guarantee a single version#6344
qxprakash wants to merge 5 commits into
mainfrom
restore/pr-6206

Conversation

@qxprakash

@qxprakash qxprakash commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

restore #6206 to e353bd4

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e353bd43ba

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"./package.json": "./package.json"
},
"dependencies": {
"@uppy/utils": "workspace:^",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep preact for emitted JSX runtime imports

In packages that still compile TSX, adding @uppy/utils does not replace the direct preact runtime dependency: tsconfig.shared.json uses jsx: react-jsx with jsxImportSource: preact, so built files from sources such as packages/@uppy/components/src/FilesGrid.tsx will still contain compiler-generated imports from preact/jsx-runtime. With preact removed from @uppy/components dependencies, consumers using pnpm/Yarn PnP or any install where only @uppy/utils owns preact can fail to resolve those imports at runtime; keep preact as a direct dependency or route the JSX runtime through an exported @uppy/utils subpath before dropping it.

Useful? React with 👍 / 👎.

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