@rpcbase/vite 0.16.0 → 0.18.0

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.
Files changed (2) hide show
  1. package/index.js +23 -13
  2. package/package.json +17 -13
package/index.js CHANGED
@@ -28,25 +28,13 @@ const htmlMinifyOptions = {
28
28
  minifyCSS: true,
29
29
  }
30
30
 
31
- export const resolveAliases = {
31
+ const resolveAliases = {
32
32
  "@/api": path.resolve(process.cwd(), "./src/api/"),
33
33
  "@/models": path.resolve(process.cwd(), "./src/models/"),
34
34
  "@/shared": path.resolve(process.cwd(), "./src/shared/"),
35
35
  "@/types": path.resolve(process.cwd(), "./src/types/"),
36
36
  "@": path.resolve(process.cwd(), "./src/client/"),
37
37
  //
38
- "posthog-js": path.resolve(
39
- process.cwd(),
40
- "./node_modules/posthog-js",
41
- ),
42
- "react-hook-form": path.resolve(
43
- process.cwd(),
44
- "./node_modules/react-hook-form",
45
- ),
46
- "@hookform/resolvers": path.resolve(
47
- process.cwd(),
48
- "./node_modules/@hookform/resolvers",
49
- ),
50
38
  cookie: path.resolve(process.cwd(), "./node_modules/cookie"),
51
39
  "set-cookie-parser": path.resolve(
52
40
  process.cwd(),
@@ -55,6 +43,28 @@ export const resolveAliases = {
55
43
  // "react-dom": path.resolve(import.meta.dirname, "./node_modules/react-dom"),
56
44
  }
57
45
 
46
+ const integratedPackages = [
47
+ "@hookform/resolvers",
48
+ "axios",
49
+ "dotenv",
50
+ "libphonenumber-js",
51
+ "lodash",
52
+ "maplibre-gl",
53
+ "mongoose",
54
+ "openai",
55
+ "posthog-js",
56
+ "posthog-node",
57
+ "react-hook-form",
58
+ ]
59
+
60
+ // Add each integrated package to resolveAliases
61
+ integratedPackages.forEach(pkg => {
62
+ resolveAliases[pkg] = path.resolve(process.cwd(), `./node_modules/${pkg}`)
63
+ })
64
+
65
+ export {resolveAliases}
66
+
67
+
58
68
  // https://vite.dev/config/
59
69
  const getBaseConfig = ({ command, mode, isSsrBuild, isPreview }) => {
60
70
  // workaround vite.ssrLoadModule not setting ssrBuild properly
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/vite",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "scripts": {
@@ -24,22 +24,26 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
+ "@hookform/resolvers": "5.0.1",
27
28
  "@sentry/vite-plugin": "3.3.1",
28
- "@swc/core": "1.11.7",
29
- "@tailwindcss/vite": "4.0.12",
30
- "@vitejs/plugin-react-swc": "3.8.0",
29
+ "@swc/core": "1.11.21",
30
+ "@tailwindcss/vite": "4.1.4",
31
+ "@vitejs/plugin-react-swc": "3.9.0",
31
32
  "clsx": "2.1.1",
32
- "libphonenumber-js": "1.12.5",
33
- "mongoose": "8.12.1",
33
+ "dotenv": "16.5.0",
34
+ "libphonenumber-js": "1.12.6",
35
+ "mongoose": "8.13.2",
34
36
  "nocache": "4.0.0",
35
- "posthog-js": "1.235.6",
36
- "react": "19.0.0",
37
- "react-dom": "19.0.0",
38
- "react-router": "7.3.0",
37
+ "openai": "4.95.0",
38
+ "posthog-js": "1.236.1",
39
+ "posthog-node": "4.11.7",
40
+ "react": "19.1.0",
41
+ "react-dom": "19.1.0",
42
+ "react-router": "7.5.0",
39
43
  "swc-plugin-add-display-name": "0.5.0",
40
- "tailwindcss": "4.0.3",
41
- "validator": "13.12.0",
42
- "vite": "6.2.1",
44
+ "tailwindcss": "4.1.4",
45
+ "validator": "13.15.0",
46
+ "vite": "6.2.6",
43
47
  "vite-plugin-html": "3.2.2",
44
48
  "zod": "3.24.2"
45
49
  }