Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vitejs/vite-plugin-react
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cda8145b8dc5a7211c0e3f8a253b4cac9c2c3d42
Choose a base ref
...
head repository: vitejs/vite-plugin-react
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f87d23e91fa48b8a8488dd8bee5277070f5fc3c2
Choose a head ref

Commits on Feb 13, 2023

  1. chore(deps): update dependency execa to v7 (#106)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 13, 2023
    Copy the full SHA
    e6ed0a1 View commit details

Commits on Feb 15, 2023

  1. chore(deps): update all non-major dependencies (#105)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Arnaud Barré <arnaud.barre@carbometrix.com>
    renovate[bot] and ArnaudBarre authored Feb 15, 2023
    Copy the full SHA
    ca785b6 View commit details

Commits on Feb 18, 2023

  1. Copy the full SHA
    6756b85 View commit details

Commits on Feb 27, 2023

  1. fix(deps): update all non-major dependencies (#111)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 27, 2023
    Copy the full SHA
    45fbe22 View commit details

Commits on Mar 8, 2023

  1. chore(deps): update all non-major dependencies (#115)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 8, 2023
    Copy the full SHA
    11a9961 View commit details

Commits on Mar 11, 2023

  1. Copy the full SHA
    82b45c3 View commit details
  2. Copy the full SHA
    b5945c9 View commit details
  3. Copy the full SHA
    a74dfef View commit details

Commits on Mar 13, 2023

  1. chore(deps): update all non-major dependencies (#118)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 13, 2023
    Copy the full SHA
    663a966 View commit details

Commits on Mar 22, 2023

  1. Copy the full SHA
    30d60ec View commit details
  2. fix(deps): update all non-major dependencies (#119)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 22, 2023
    Copy the full SHA
    8ccc5c0 View commit details
  3. chore(deps): update dependency typescript to v5 (#120)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 22, 2023
    Copy the full SHA
    bf2c6a5 View commit details

Commits on Mar 27, 2023

  1. chore(deps): update all non-major dependencies (#123)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 27, 2023
    Copy the full SHA
    a1b4de1 View commit details

Commits on Mar 30, 2023

  1. Copy the full SHA
    a8bbcf9 View commit details
  2. Copy the full SHA
    40b83e3 View commit details
  3. Copy the full SHA
    074ab46 View commit details
  4. Copy the full SHA
    2a3b026 View commit details
  5. Copy the full SHA
    7663e92 View commit details
  6. Copy the full SHA
    e26bb67 View commit details
  7. Copy the full SHA
    ef10925 View commit details

Commits on Apr 1, 2023

  1. Copy the full SHA
    e93cf8b View commit details
  2. Copy the full SHA
    5d8a052 View commit details

Commits on Apr 3, 2023

  1. fix(deps): update all non-major dependencies (#138)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 3, 2023
    Copy the full SHA
    c655563 View commit details
  2. Copy the full SHA
    2c4bf35 View commit details

Commits on Apr 4, 2023

  1. Copy the full SHA
    fbf722f View commit details

Commits on Apr 5, 2023

  1. Copy the full SHA
    25b652b View commit details
  2. Copy the full SHA
    80f6869 View commit details
  3. Copy the full SHA
    85b4fea View commit details

Commits on Apr 17, 2023

  1. chore(deps): update all non-major dependencies (#146)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 17, 2023
    Copy the full SHA
    f8217d6 View commit details
  2. Copy the full SHA
    3bbd8f0 View commit details
  3. Copy the full SHA
    14a0e83 View commit details

Commits on Apr 20, 2023

  1. Copy the full SHA
    bf8e967 View commit details
  2. Copy the full SHA
    1270758 View commit details
  3. Copy the full SHA
    f87d23e View commit details
Showing with 2,316 additions and 2,173 deletions.
  1. +1 −0 .github/renovate.json5
  2. +3 −3 .github/workflows/publish.yml
  3. +0 −39 .github/workflows/release-tag.yml
  4. +17 −20 package.json
  5. +175 −181 packages/plugin-react/CHANGELOG.md
  6. +28 −25 packages/plugin-react/README.md
  7. +4 −5 packages/plugin-react/package.json
  8. +1 −1 packages/plugin-react/src/fast-refresh.ts
  9. +155 −279 packages/plugin-react/src/index.ts
  10. +22 −2 packages/plugin-react/src/refreshUtils.js
  11. +23 −0 playground/mdx/__tests__/mdx.spec.ts
  12. +13 −0 playground/mdx/index.html
  13. +20 −0 playground/mdx/package.json
  14. +1 −0 playground/mdx/public/vite.svg
  15. +11 −0 playground/mdx/src/demo.mdx
  16. +9 −0 playground/mdx/src/main.tsx
  17. +6 −0 playground/mdx/src/vite-env.d.ts
  18. +21 −0 playground/mdx/tsconfig.json
  19. +9 −0 playground/mdx/tsconfig.node.json
  20. +11 −0 playground/mdx/vite.config.ts
  21. +1 −1 playground/package.json
  22. +1 −1 playground/react-classic/App.jsx
  23. +3 −3 playground/react-emotion/package.json
  24. +0 −8 playground/ssr-react/__tests__/ssr-react.spec.ts
  25. +1 −1 playground/ssr-react/package.json
  26. +0 −1 playground/ssr-react/src/circular-dep-init/README.md
  27. +0 −2 playground/ssr-react/src/circular-dep-init/circular-dep-init.js
  28. +0 −1 playground/ssr-react/src/circular-dep-init/module-a.js
  29. +0 −8 playground/ssr-react/src/circular-dep-init/module-b.js
  30. +0 −51 playground/ssr-react/src/forked-deadlock/README.md
  31. +0 −10 playground/ssr-react/src/forked-deadlock/common-module.js
  32. +0 −8 playground/ssr-react/src/forked-deadlock/deadlock-fuse-module.js
  33. +0 −8 playground/ssr-react/src/forked-deadlock/fuse-stuck-bridge-module.js
  34. +0 −8 playground/ssr-react/src/forked-deadlock/middle-module.js
  35. +0 −8 playground/ssr-react/src/forked-deadlock/stuck-module.js
  36. +0 −5 playground/ssr-react/src/pages/Home.jsx
  37. +1,758 −1,429 pnpm-lock.yaml
  38. +22 −18 scripts/release.ts
  39. +0 −47 scripts/releaseUtils.ts
1 change: 1 addition & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@
"ignoreDeps": [
// manually bumping
"node",
"pnpm",

// breaking changes
"source-map", // `source-map:v0.7.0+` needs more investigation
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -3,12 +3,10 @@ name: Publish Package
on:
push:
tags:
- "plugin-*" # Push events to matching plugin-*, i.e. plugin-(vue|vue-jsx|react|legacy)@1.0.0
- "plugin-*"

jobs:
publish:
# prevents this action from running on forks
if: github.repository == 'vitejs/vite-plugin-react'
runs-on: ubuntu-latest
environment: Release
steps:
@@ -34,3 +32,5 @@ jobs:
run: pnpm run ci-publish ${{ github.ref_name }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: ArnaudBarre/github-release@v1
39 changes: 0 additions & 39 deletions .github/workflows/release-tag.yml

This file was deleted.

37 changes: 17 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -33,30 +33,27 @@
"devDependencies": {
"@types/babel__core": "^7.20.0",
"@types/fs-extra": "^11.0.1",
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@vitejs/release-scripts": "^1.1.0",
"conventional-changelog-cli": "^2.2.2",
"eslint": "^8.32.0",
"eslint-define-config": "^1.14.0",
"eslint": "^8.38.0",
"eslint-define-config": "^1.18.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-regexp": "^1.12.0",
"execa": "^6.1.0",
"fs-extra": "^11.1.0",
"lint-staged": "^13.1.0",
"npm-run-all": "^4.1.5",
"eslint-plugin-regexp": "^1.14.0",
"fs-extra": "^11.1.1",
"lint-staged": "^13.2.1",
"picocolors": "^1.0.0",
"playwright-chromium": "^1.29.2",
"prettier": "2.8.3",
"rollup": "^3.10.1",
"playwright-chromium": "^1.32.3",
"prettier": "2.8.7",
"rollup": "^3.20.4",
"simple-git-hooks": "^2.8.1",
"tsx": "^3.12.2",
"typescript": "^4.9.4",
"unbuild": "^1.1.1",
"vite": "^4.1.0-beta.0",
"vitest": "^0.27.3"
"tsx": "^3.12.6",
"typescript": "^5.0.4",
"unbuild": "^1.2.1",
"vite": "^4.2.1",
"vitest": "^0.30.1"
},
"simple-git-hooks": {
"pre-commit": "pnpm exec lint-staged --concurrent false"
@@ -75,5 +72,5 @@
"eslint --cache --fix"
]
},
"packageManager": "pnpm@7.25.1"
"packageManager": "pnpm@7.30.5"
}
Loading