Skip to content

feat: add react-dom preset#604

Merged
antfu merged 5 commits intounplugin:mainfrom
Debbl:feat/add-react-dom-preset
Nov 27, 2025
Merged

feat: add react-dom preset#604
antfu merged 5 commits intounplugin:mainfrom
Debbl:feat/add-react-dom-preset

Conversation

@Debbl
Copy link
Copy Markdown
Contributor

@Debbl Debbl commented Oct 9, 2025

Description

add react-dom preset

Linked Issues

Additional context

Copilot AI review requested due to automatic review settings October 9, 2025 03:07
@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new react-dom preset that provides auto-imports for React DOM APIs including hooks, portal creation, and resource preloading functions.

  • Introduces a new react-dom preset with 9 commonly used functions from the react-dom package
  • Updates the preset registry to include the new react-dom preset
  • Adds test coverage for the new preset

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/presets/react-dom.ts Creates the new react-dom preset with hooks and API functions
src/presets/index.ts Registers the react-dom preset in the presets collection
test/dts.test.ts Adds react-dom to the test imports list
test/snapshots/dts.test.ts.snap Updates test snapshots with expected react-dom declarations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Nov 27, 2025

Open in StackBlitz

npm i https://pkg.pr.new/unplugin-auto-import@604

commit: e8249c7

@antfu antfu merged commit 741aa59 into unplugin:main Nov 27, 2025
8 checks passed
@Debbl Debbl deleted the feat/add-react-dom-preset branch November 27, 2025 12:52
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.

3 participants