uniweb 0.2.7 → 0.2.9
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 +3 -3
- package/src/index.js +7 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Create structured Vite + React sites with content/code separation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"url": "https://github.com/uniweb/cli/issues"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
|
-
"node": ">=
|
|
31
|
+
"node": ">=20.19"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@uniweb/build": "^0.1.0",
|
|
35
35
|
"prompts": "^2.4.2",
|
|
36
36
|
"tar": "^7.0.0",
|
|
37
|
-
"@uniweb/templates": "0.1.
|
|
37
|
+
"@uniweb/templates": "0.1.5"
|
|
38
38
|
}
|
|
39
39
|
}
|
package/src/index.js
CHANGED
|
@@ -601,7 +601,7 @@ async function createSite(projectDir, projectName, isWorkspace = false) {
|
|
|
601
601
|
...(isWorkspace ? {} : { 'foundation-example': '^0.1.0' }),
|
|
602
602
|
},
|
|
603
603
|
devDependencies: {
|
|
604
|
-
'@vitejs/plugin-react': '^
|
|
604
|
+
'@vitejs/plugin-react': '^5.0.0',
|
|
605
605
|
autoprefixer: '^10.4.18',
|
|
606
606
|
'js-yaml': '^4.1.0',
|
|
607
607
|
postcss: '^8.4.35',
|
|
@@ -609,7 +609,7 @@ async function createSite(projectDir, projectName, isWorkspace = false) {
|
|
|
609
609
|
'react-dom': '^18.2.0',
|
|
610
610
|
'react-router-dom': '^6.22.0',
|
|
611
611
|
tailwindcss: '^3.4.1',
|
|
612
|
-
vite: '^
|
|
612
|
+
vite: '^7.0.0',
|
|
613
613
|
'vite-plugin-svgr': '^4.2.0',
|
|
614
614
|
},
|
|
615
615
|
})
|
|
@@ -696,6 +696,9 @@ export default defineConfig({
|
|
|
696
696
|
fs: { allow: ['..'] },
|
|
697
697
|
port: 3000,
|
|
698
698
|
},
|
|
699
|
+
optimizeDeps: {
|
|
700
|
+
include: ['react', 'react-dom', 'react-dom/client', 'react-router-dom'],
|
|
701
|
+
},
|
|
699
702
|
})
|
|
700
703
|
`)
|
|
701
704
|
|
|
@@ -890,14 +893,14 @@ async function createFoundation(projectDir, projectName, isWorkspace = false) {
|
|
|
890
893
|
'react-dom': '^18.0.0',
|
|
891
894
|
},
|
|
892
895
|
devDependencies: {
|
|
893
|
-
'@vitejs/plugin-react': '^
|
|
896
|
+
'@vitejs/plugin-react': '^5.0.0',
|
|
894
897
|
autoprefixer: '^10.4.18',
|
|
895
898
|
postcss: '^8.4.35',
|
|
896
899
|
react: '^18.2.0',
|
|
897
900
|
'react-dom': '^18.2.0',
|
|
898
901
|
tailwindcss: '^3.4.1',
|
|
899
902
|
uniweb: '^0.2.0',
|
|
900
|
-
vite: '^
|
|
903
|
+
vite: '^7.0.0',
|
|
901
904
|
'vite-plugin-svgr': '^4.2.0',
|
|
902
905
|
},
|
|
903
906
|
})
|