mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: fix 'react-dom' import
This commit is contained in:
4 files changed
+8
-7
No files matched your search
@@ -29,9 +29,10 @@ const federationPlugin: esbuild.Plugin = {
|
||||
name: 'federation',
|
||||
setup(b) {
|
||||
const packages = {
|
||||
react: 'React',
|
||||
'react/jsx-runtime': 'jsxRuntime',
|
||||
react: 'React',
|
||||
'react-dom/client': 'ReactDOM',
|
||||
'react-dom': 'ReactDOM',
|
||||
jquery: '$',
|
||||
};
|
||||
b.onResolve({ filter: /^@hydrooj\/ui-default/ }, () => ({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.58.0-beta.12",
|
||||
"version": "4.58.0-beta.13",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "index.ts",
|
||||
@@ -37,7 +37,7 @@
|
||||
"@types/pickadate": "^3.5.35",
|
||||
"@types/qrcode": "^1.5.6",
|
||||
"@types/react": "^19.2.3",
|
||||
"@types/react-dom": "^19.2.2",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@types/redux-logger": "^3.0.13",
|
||||
"@types/uuid": "^11.0.0",
|
||||
"@types/webpack-env": "^1.18.8",
|
||||
|
||||
@@ -8,14 +8,14 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vitejs/plugin-react": "^5.1.0",
|
||||
"@vitejs/plugin-react": "^5.1.1",
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^19.2.3",
|
||||
"@types/react-dom": "^19.2.2",
|
||||
"@vitejs/plugin-react-swc": "^4.2.1",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@vitejs/plugin-react-swc": "^4.2.2",
|
||||
"vite": "^7.2.2"
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@
|
||||
"preferUnplugged": true,
|
||||
"dependencies": {
|
||||
"@hydrooj/utils": "workspace:^",
|
||||
"jsdom": "^27.1.0",
|
||||
"jsdom": "^27.2.0",
|
||||
"superagent-charset": "^1.2.0",
|
||||
"superagent-proxy": "^3.0.0"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user