Skip to content

feat: add ESM/CJS wrapper and build with Rslib#29

Merged
chenjiahan merged 4 commits intomainfrom
exports_0423
Apr 23, 2025
Merged

feat: add ESM/CJS wrapper and build with Rslib#29
chenjiahan merged 4 commits intomainfrom
exports_0423

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

  1. Add support for ESM named export:
// Named import (recommended)
import { ReactRefreshRspackPlugin } from "@rspack/plugin-react-refresh";
  1. Fix TS error when the skipLibCheck option of tsconfig.json is set to false, see fix: TS error when skipLibCheck is false #26

  2. Use Rslib to build the package. Note that the output format is still CJS as there are many require.resolve in the source code.

@chenjiahan chenjiahan requested a review from LingyuCoder April 23, 2025 06:41
@chenjiahan chenjiahan merged commit 717b330 into main Apr 23, 2025
4 checks passed
@chenjiahan chenjiahan deleted the exports_0423 branch April 23, 2025 08:19
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