@quark-fw/plugin-react 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +12 -12
- package/src/utils/viteConfig.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quark-fw/plugin-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"main": "src/index.ts",
|
|
5
5
|
"types": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -21,27 +21,27 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@
|
|
25
|
-
"@quark-fw/
|
|
26
|
-
"@quark-fw/plugin": "0.1.2",
|
|
27
|
-
"@quark-fw/store": "0.1.2",
|
|
24
|
+
"@quark-fw/atom": "0.1.4",
|
|
25
|
+
"@quark-fw/plugin": "0.1.4",
|
|
28
26
|
"@trpc/client": "^11.0.0",
|
|
29
|
-
"@mantine/dates": "^8.3.18",
|
|
30
|
-
"@mantine/modals": "^8.3.18",
|
|
31
|
-
"@mantine/notifications": "^8.3.18",
|
|
32
27
|
"@types/react-dom": "^19.2.3",
|
|
33
28
|
"@vitejs/plugin-react": "^5.1.4",
|
|
34
29
|
"express": "^5.2.1",
|
|
35
|
-
"react": "^19.2.4",
|
|
36
|
-
"react-dom": "^19.2.4",
|
|
37
|
-
"react-router-dom": "^7.13.2",
|
|
38
30
|
"vite": "^7.3.1",
|
|
39
31
|
"vite-css-modules": "^1.13.0",
|
|
40
32
|
"vite-plugin-svgr": "^4.5.0",
|
|
41
33
|
"vite-tsconfig-paths": "^6.1.1"
|
|
42
34
|
},
|
|
43
35
|
"peerDependencies": {
|
|
44
|
-
"@
|
|
36
|
+
"@mantine/core": "^8.3.18",
|
|
37
|
+
"@mantine/dates": "^8.3.18",
|
|
38
|
+
"@mantine/modals": "^8.3.18",
|
|
39
|
+
"@mantine/notifications": "^8.3.18",
|
|
40
|
+
"@quark-fw/core": "0.1.4",
|
|
41
|
+
"@quark-fw/store": "0.1.4",
|
|
42
|
+
"react": "^19.2.4",
|
|
43
|
+
"react-dom": "^19.2.4",
|
|
44
|
+
"react-router-dom": "^7.13.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/express": "^5.0.6",
|
package/src/utils/viteConfig.ts
CHANGED
|
@@ -63,6 +63,11 @@ export function createViteConfig(overrides?: InlineConfig): InlineConfig {
|
|
|
63
63
|
tsconfigPaths(),
|
|
64
64
|
loadModulesFromExternalFolderPlugin(),
|
|
65
65
|
],
|
|
66
|
+
// Установленный из реестра плагин лежит в node_modules, куда
|
|
67
|
+
// @vitejs/plugin-react не заглядывает (у него exclude /node_modules/).
|
|
68
|
+
// Без явного automatic-рантайма его собственный JSX собирается в
|
|
69
|
+
// React.createElement и падает с "React is not defined".
|
|
70
|
+
esbuild: { jsx: "automatic", jsxImportSource: "react" },
|
|
66
71
|
optimizeDeps: {
|
|
67
72
|
exclude: workspacePackages(process.cwd()),
|
|
68
73
|
},
|