refactor(packages/*): use @vitejs/plugin-react-swc and make all package dependencies explicit (#254)

This commit is contained in:
Marco Pasqualetti
2024-12-23 18:20:29 +01:00
committed by GitHub
parent 2434231f9b
commit f236b75f55
8 changed files with 81 additions and 229 deletions
+1 -1
View File
@@ -50,7 +50,7 @@
"vite": "^5.2.11"
},
"devDependencies": {
"@tanstack/config": "^0.7.11",
"@tanstack/config": "0.7.13",
"@types/babel__core": "^7.20.5",
"vitest": "^2.0.0"
}
+1 -1
View File
@@ -49,7 +49,7 @@
"vite": "^5.2.11"
},
"devDependencies": {
"@tanstack/config": "^0.7.11",
"@tanstack/config": "0.7.13",
"@types/babel__core": "^7.20.5",
"prettier": "^3.2.4",
"vitest": "^2.0.0"
+5 -4
View File
@@ -44,8 +44,7 @@
"./package.json": "./package.json"
},
"peerDependencies": {
"react": ">=16.3.0",
"react-dom": ">=16.3.0"
"react": ">=16.3.0"
},
"dependencies": {
"react-intersection-observer": "^9.13.0",
@@ -53,11 +52,13 @@
"zustand": "4.4.7"
},
"devDependencies": {
"@tanstack/config": "^0.7.11",
"@tanstack/config": "0.7.13",
"@testing-library/jest-dom": "^6.6.0",
"@testing-library/react": "^16.0.0",
"@types/react": "18.3.13",
"@vitejs/plugin-react-swc": "3.7.2",
"react": "18.3.1",
"jsdom": "^25.0.0",
"prettier": "^3.2.4",
"vitest": "^2.0.0"
}
}
+1 -1
View File
@@ -2,7 +2,7 @@
/// <reference types="vite/client" />
import { defineConfig, mergeConfig } from 'vitest/config'
import { tanstackBuildConfig } from '@tanstack/config/build'
import react from '@vitejs/plugin-react'
import react from '@vitejs/plugin-react-swc'
const config = defineConfig({
plugins: [react()],
+5 -3
View File
@@ -114,11 +114,13 @@
"web-streams-polyfill": "^4.0.0"
},
"devDependencies": {
"@tanstack/config": "0.7.13",
"@types/babel-traverse": "^6.25.10",
"@types/babel__traverse": "^7.20.6",
"@types/react": "^18.3.13",
"@types/react-dom": "^18.3.0",
"prettier": "^3.2.4",
"@types/react": "18.3.13",
"@types/react-dom": "18.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"vitest": "^2.0.0"
},
"sideEffects": false,
+1 -1
View File
@@ -2,7 +2,7 @@
/// <reference types="vite/client" />
import { defineConfig, mergeConfig } from 'vitest/config'
import { tanstackBuildConfig } from '@tanstack/config/build'
import react from '@vitejs/plugin-react'
import react from '@vitejs/plugin-react-swc'
const config = defineConfig({
plugins: [react()],