mirror of
https://github.com/datahub-project/datahub.git
synced 2026-01-07 07:17:01 +00:00
feat: migrate from plugin-react to plugin-react-swc
This commit is contained in:
parent
ab5b08e725
commit
5008a1ff07
@ -154,7 +154,7 @@
|
||||
"@types/styled-components": "^5.1.7",
|
||||
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
||||
"@typescript-eslint/parser": "^5.38.1",
|
||||
"@vitejs/plugin-react": "^4.1.1",
|
||||
"@vitejs/plugin-react-swc": "^3.10.1",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"eslint": "^8.2.0",
|
||||
"eslint-config-airbnb": "19.0.4",
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { codecovVitePlugin } from '@codecov/vite-plugin';
|
||||
import react from '@vitejs/plugin-react-swc';
|
||||
import * as path from 'path';
|
||||
import { defineConfig, loadEnv } from 'vite';
|
||||
import macrosPlugin from 'vite-plugin-babel-macros';
|
||||
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
||||
import { codecovVitePlugin } from "@codecov/vite-plugin";
|
||||
import svgr from 'vite-plugin-svgr';
|
||||
|
||||
const injectMeticulous = () => {
|
||||
@ -89,9 +89,9 @@ export default defineConfig(({ mode }) => {
|
||||
}),
|
||||
codecovVitePlugin({
|
||||
enableBundleAnalysis: true,
|
||||
bundleName: "datahub-react-web",
|
||||
bundleName: 'datahub-react-web',
|
||||
uploadToken: process.env.CODECOV_TOKEN,
|
||||
gitService: "github",
|
||||
gitService: 'github',
|
||||
}),
|
||||
],
|
||||
// optimizeDeps: {
|
||||
|
||||
@ -291,7 +291,7 @@
|
||||
json5 "^2.2.2"
|
||||
semver "^6.3.0"
|
||||
|
||||
"@babel/core@^7.17.7", "@babel/core@^7.21.3", "@babel/core@^7.23.2":
|
||||
"@babel/core@^7.17.7", "@babel/core@^7.21.3":
|
||||
version "7.23.2"
|
||||
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.2.tgz#ed10df0d580fff67c5f3ee70fd22e2e4c90a9f94"
|
||||
integrity sha512-n7s51eWdaWZ3vGT2tD4T7J6eJs3QoBXydv7vkUM06Bf1cbVD2Kc2UrkzhiQwobfV7NwOnQXYL7UBJ5VPU+RGoQ==
|
||||
@ -935,20 +935,6 @@
|
||||
dependencies:
|
||||
"@babel/helper-plugin-utils" "^7.22.5"
|
||||
|
||||
"@babel/plugin-transform-react-jsx-self@^7.22.5":
|
||||
version "7.22.5"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.22.5.tgz#ca2fdc11bc20d4d46de01137318b13d04e481d8e"
|
||||
integrity sha512-nTh2ogNUtxbiSbxaT4Ds6aXnXEipHweN9YRgOX/oNXdf0cCrGn/+2LozFa3lnPV5D90MkjhgckCPBrsoSc1a7g==
|
||||
dependencies:
|
||||
"@babel/helper-plugin-utils" "^7.22.5"
|
||||
|
||||
"@babel/plugin-transform-react-jsx-source@^7.22.5":
|
||||
version "7.22.5"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.22.5.tgz#49af1615bfdf6ed9d3e9e43e425e0b2b65d15b6c"
|
||||
integrity sha512-yIiRO6yobeEIaI0RTbIr8iAK9FcBHLtZq0S89ZPjDLQXBA4xvghaKqI0etp/tF3htTM0sazJKKLz9oEiGRtu7w==
|
||||
dependencies:
|
||||
"@babel/helper-plugin-utils" "^7.22.5"
|
||||
|
||||
"@babel/plugin-transform-react-jsx@^7.0.0":
|
||||
version "7.22.5"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.5.tgz#932c291eb6dd1153359e2a90cb5e557dcf068416"
|
||||
@ -3687,6 +3673,11 @@
|
||||
resolved "https://registry.yarnpkg.com/@repeaterjs/repeater/-/repeater-3.0.5.tgz#b77571685410217a548a9c753aa3cdfc215bfc78"
|
||||
integrity sha512-l3YHBLAol6d/IKnB9LhpD0cEZWAoe3eFKUyTYWmFmCO2Q/WOckxLQAUyMZWwZV2M/m3+4vgRoaolFqaII82/TA==
|
||||
|
||||
"@rolldown/pluginutils@1.0.0-beta.9":
|
||||
version "1.0.0-beta.9"
|
||||
resolved "https://registry.yarnpkg.com/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.9.tgz#68ef9fff5a9791a642cea0dc4380ce6cb487a84a"
|
||||
integrity sha512-e9MeMtVWo186sgvFFJOPGy7/d2j2mZhLJIdVW0C/xDluuOvymEATqz6zKsP0ZmXGzQtqlyjz5sC1sYQUoJG98w==
|
||||
|
||||
"@rollup/pluginutils@^5.0.2":
|
||||
version "5.1.3"
|
||||
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.1.3.tgz#3001bf1a03f3ad24457591f2c259c8e514e0dbdf"
|
||||
@ -4108,6 +4099,87 @@
|
||||
"@svgr/hast-util-to-babel-ast" "8.0.0"
|
||||
svg-parser "^2.0.4"
|
||||
|
||||
"@swc/core-darwin-arm64@1.11.31":
|
||||
version "1.11.31"
|
||||
resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.11.31.tgz#840ec54a7757b26ea7a085122ed2d4f370cd41d9"
|
||||
integrity sha512-NTEaYOts0OGSbJZc0O74xsji+64JrF1stmBii6D5EevWEtrY4wlZhm8SiP/qPrOB+HqtAihxWIukWkP2aSdGSQ==
|
||||
|
||||
"@swc/core-darwin-x64@1.11.31":
|
||||
version "1.11.31"
|
||||
resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.11.31.tgz#b0dea03b4551f877eb7b79b98148f2e39516c996"
|
||||
integrity sha512-THSGaSwT96JwXDwuXQ6yFBbn+xDMdyw7OmBpnweAWsh5DhZmQkALEm1DgdQO3+rrE99MkmzwAfclc0UmYro/OA==
|
||||
|
||||
"@swc/core-linux-arm-gnueabihf@1.11.31":
|
||||
version "1.11.31"
|
||||
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.11.31.tgz#3c542863a2c55e55bc0ebbd2379509420ce0f6f6"
|
||||
integrity sha512-laKtQFnW7KHgE57Hx32os2SNAogcuIDxYE+3DYIOmDMqD7/1DCfJe6Rln2N9WcOw6HuDbDpyQavIwZNfSAa8vQ==
|
||||
|
||||
"@swc/core-linux-arm64-gnu@1.11.31":
|
||||
version "1.11.31"
|
||||
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.11.31.tgz#2a15a38e778eddd280f0a9b0ef587dc8d49a06b6"
|
||||
integrity sha512-T+vGw9aPE1YVyRxRr1n7NAdkbgzBzrXCCJ95xAZc/0+WUwmL77Z+js0J5v1KKTRxw4FvrslNCOXzMWrSLdwPSA==
|
||||
|
||||
"@swc/core-linux-arm64-musl@1.11.31":
|
||||
version "1.11.31"
|
||||
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.11.31.tgz#574e46f29e46b1e87c62334495364fafbd242e41"
|
||||
integrity sha512-Mztp5NZkyd5MrOAG+kl+QSn0lL4Uawd4CK4J7wm97Hs44N9DHGIG5nOz7Qve1KZo407Y25lTxi/PqzPKHo61zQ==
|
||||
|
||||
"@swc/core-linux-x64-gnu@1.11.31":
|
||||
version "1.11.31"
|
||||
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.11.31.tgz#f41ac47e846b2ade8cf47231b557d74390042706"
|
||||
integrity sha512-DDVE0LZcXOWwOqFU1Xi7gdtiUg3FHA0vbGb3trjWCuI1ZtDZHEQYL4M3/2FjqKZtIwASrDvO96w91okZbXhvMg==
|
||||
|
||||
"@swc/core-linux-x64-musl@1.11.31":
|
||||
version "1.11.31"
|
||||
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.11.31.tgz#79e70c2ea0564ce0020de7c51cf8d21754a621c0"
|
||||
integrity sha512-mJA1MzPPRIfaBUHZi0xJQ4vwL09MNWDeFtxXb0r4Yzpf0v5Lue9ymumcBPmw/h6TKWms+Non4+TDquAsweuKSw==
|
||||
|
||||
"@swc/core-win32-arm64-msvc@1.11.31":
|
||||
version "1.11.31"
|
||||
resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.11.31.tgz#f61810b827a85c2e15f86572d7e5484502872fdd"
|
||||
integrity sha512-RdtakUkNVAb/FFIMw3LnfNdlH1/ep6KgiPDRlmyUfd0WdIQ3OACmeBegEFNFTzi7gEuzy2Yxg4LWf4IUVk8/bg==
|
||||
|
||||
"@swc/core-win32-ia32-msvc@1.11.31":
|
||||
version "1.11.31"
|
||||
resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.11.31.tgz#5f327d466d74264752e3e9ba6027f043ec12ce4b"
|
||||
integrity sha512-hErXdCGsg7swWdG1fossuL8542I59xV+all751mYlBoZ8kOghLSKObGQTkBbuNvc0sUKWfWg1X0iBuIhAYar+w==
|
||||
|
||||
"@swc/core-win32-x64-msvc@1.11.31":
|
||||
version "1.11.31"
|
||||
resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.11.31.tgz#67e5dc1fcbe5cf560007a94d8249fbf6798ad8ad"
|
||||
integrity sha512-5t7SGjUBMMhF9b5j17ml/f/498kiBJNf4vZFNM421UGUEETdtjPN9jZIuQrowBkoFGJTCVL/ECM4YRtTH30u/A==
|
||||
|
||||
"@swc/core@^1.11.22":
|
||||
version "1.11.31"
|
||||
resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.11.31.tgz#e5de9ed005551ce9a16aa69e79935fc33065475c"
|
||||
integrity sha512-mAby9aUnKRjMEA7v8cVZS9Ah4duoRBnX7X6r5qrhTxErx+68MoY1TPrVwj/66/SWN3Bl+jijqAqoB8Qx0QE34A==
|
||||
dependencies:
|
||||
"@swc/counter" "^0.1.3"
|
||||
"@swc/types" "^0.1.21"
|
||||
optionalDependencies:
|
||||
"@swc/core-darwin-arm64" "1.11.31"
|
||||
"@swc/core-darwin-x64" "1.11.31"
|
||||
"@swc/core-linux-arm-gnueabihf" "1.11.31"
|
||||
"@swc/core-linux-arm64-gnu" "1.11.31"
|
||||
"@swc/core-linux-arm64-musl" "1.11.31"
|
||||
"@swc/core-linux-x64-gnu" "1.11.31"
|
||||
"@swc/core-linux-x64-musl" "1.11.31"
|
||||
"@swc/core-win32-arm64-msvc" "1.11.31"
|
||||
"@swc/core-win32-ia32-msvc" "1.11.31"
|
||||
"@swc/core-win32-x64-msvc" "1.11.31"
|
||||
|
||||
"@swc/counter@^0.1.3":
|
||||
version "0.1.3"
|
||||
resolved "https://registry.yarnpkg.com/@swc/counter/-/counter-0.1.3.tgz#cc7463bd02949611c6329596fccd2b0ec782b0e9"
|
||||
integrity sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==
|
||||
|
||||
"@swc/types@^0.1.21":
|
||||
version "0.1.22"
|
||||
resolved "https://registry.yarnpkg.com/@swc/types/-/types-0.1.22.tgz#2ec8d8710a6cf662468cbabe0c0c0aa4cf8ea6c0"
|
||||
integrity sha512-D13mY/ZA4PPEFSy6acki9eBT/3WgjMoRqNcdpIvjaYLQ44Xk5BdaL7UkDxAh6Z9UOe7tCCp67BVmZCojYp9owg==
|
||||
dependencies:
|
||||
"@swc/counter" "^0.1.3"
|
||||
|
||||
"@testing-library/dom@10.4.0":
|
||||
version "10.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-10.4.0.tgz#82a9d9462f11d240ecadbf406607c6ceeeff43a8"
|
||||
@ -4217,7 +4289,7 @@
|
||||
resolved "https://registry.yarnpkg.com/@types/aria-query/-/aria-query-5.0.3.tgz#07570ebd25f9b516c910a91f7244052c9b58eabc"
|
||||
integrity sha512-0Z6Tr7wjKJIk4OUEjVUQMtyunLDy339vcMaj38Kpj6jM2OE1p3S4kXExKZ7a3uXQAPCoy3sbrP1wibDKaf39oA==
|
||||
|
||||
"@types/babel__core@^7.1.18", "@types/babel__core@^7.20.3":
|
||||
"@types/babel__core@^7.1.18":
|
||||
version "7.20.3"
|
||||
resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.3.tgz#d5625a50b6f18244425a1359a858c73d70340778"
|
||||
integrity sha512-54fjTSeSHwfan8AyHWrKbfBWiEUrNTZsUwPTDSNaaP1QDQIZbeNUg3a59E9D+375MzUw/x1vx2/0F5LBz+AeYA==
|
||||
@ -5474,16 +5546,13 @@
|
||||
"@visx/event" "3.0.1"
|
||||
prop-types "^15.6.2"
|
||||
|
||||
"@vitejs/plugin-react@^4.1.1":
|
||||
version "4.1.1"
|
||||
resolved "https://registry.yarnpkg.com/@vitejs/plugin-react/-/plugin-react-4.1.1.tgz#a10254dc76778027407d01b6ddbca53b23852a72"
|
||||
integrity sha512-Jie2HERK+uh27e+ORXXwEP5h0Y2lS9T2PRGbfebiHGlwzDO0dEnd2aNtOR/qjBlPb1YgxwAONeblL1xqLikLag==
|
||||
"@vitejs/plugin-react-swc@^3.10.1":
|
||||
version "3.10.1"
|
||||
resolved "https://registry.yarnpkg.com/@vitejs/plugin-react-swc/-/plugin-react-swc-3.10.1.tgz#260de78382296d7c1142d2a093e6c786cd17b55c"
|
||||
integrity sha512-FmQvN3yZGyD9XW6IyxE86Kaa/DnxSsrDQX1xCR1qojNpBLaUop+nLYFvhCkJsq8zOupNjCRA9jyhPGOJsSkutA==
|
||||
dependencies:
|
||||
"@babel/core" "^7.23.2"
|
||||
"@babel/plugin-transform-react-jsx-self" "^7.22.5"
|
||||
"@babel/plugin-transform-react-jsx-source" "^7.22.5"
|
||||
"@types/babel__core" "^7.20.3"
|
||||
react-refresh "^0.14.0"
|
||||
"@rolldown/pluginutils" "1.0.0-beta.9"
|
||||
"@swc/core" "^1.11.22"
|
||||
|
||||
"@vitest/coverage-v8@^0.34.6":
|
||||
version "0.34.6"
|
||||
@ -11364,11 +11433,6 @@ react-markdown@6.0.2:
|
||||
unist-util-visit "^2.0.0"
|
||||
vfile "^4.0.0"
|
||||
|
||||
react-refresh@^0.14.0:
|
||||
version "0.14.0"
|
||||
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.14.0.tgz#4e02825378a5f227079554d4284889354e5f553e"
|
||||
integrity sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==
|
||||
|
||||
react-router-dom@^5.3:
|
||||
version "5.3.4"
|
||||
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-5.3.4.tgz#2ed62ffd88cae6db134445f4a0c0ae8b91d2e5e6"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user