Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

feat: using oxc transfomer #1

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
on:
push:
branches:
- main
- using-oxc-transfomer
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -115,3 +115,29 @@ jobs:

- name: Typecheck
run: pnpm run typecheck

Continuous-Releases:
timeout-minutes: 20
name: "Continuous Releases"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/[email protected]

- name: Set node version to 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install deps
run: pnpm install

- name: Build
run: pnpm run build

- name: Continuous Releases
run: pnpx pkg-pr-new publish --pnpm ./packages/plugin-react
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"simple-git-hooks": "^2.11.1",
"tsx": "^4.19.1",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"rolldown-vite": "https://pkg.pr.new/rolldown/vite@3a82b11",
"vitest": "^2.1.1"
},
"simple-git-hooks": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-react/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: ['src/index'],
externals: ['vite'],
externals: ['rolldown-vite'],
clean: true,
declaration: true,
rollup: {
Expand Down
8 changes: 2 additions & 6 deletions packages/plugin-react/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@vitejs/plugin-react",
"name": "rolldown-vite-plugin-react",
"version": "4.3.2",
"license": "MIT",
"author": "Evan You",
Expand Down Expand Up @@ -38,14 +38,10 @@
},
"homepage": "https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#readme",
"dependencies": {
"@babel/core": "^7.25.2",
"@babel/plugin-transform-react-jsx-self": "^7.24.7",
"@babel/plugin-transform-react-jsx-source": "^7.24.7",
"@types/babel__core": "^7.20.5",
"react-refresh": "^0.14.2"
},
"peerDependencies": {
"vite": "^4.2.0 || ^5.0.0"
"rolldown-vite": "https://pkg.pr.new/rolldown/vite@3a82b11"
},
"devDependencies": {
"unbuild": "^2.0.0"
Expand Down
3 changes: 0 additions & 3 deletions packages/plugin-react/src/babel.d.ts

This file was deleted.

Loading