@rpcbase/vite 0.97.0 → 0.98.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 +4 -0
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -90,6 +90,7 @@ const resolveAliases = {
90
90
  const integratedPackages = [
91
91
  "@hookform/resolvers",
92
92
  "axios",
93
+ "events",
93
94
  "libphonenumber-js",
94
95
  "posthog-js",
95
96
  "posthog-js/react",
@@ -104,6 +105,8 @@ integratedPackages.forEach(pkg => {
104
105
  resolveAliases[pkg] = resolved
105
106
  })
106
107
 
108
+ resolveAliases["node:events"] = resolveIntegratedPackagePath("events")
109
+
107
110
  // Force PostHog React imports to resolve to the ESM bundle to avoid Node ESM
108
111
  // directory import errors while keeping SSR compatibility.
109
112
  const posthogReactEsm = resolveIntegratedPackagePath("posthog-js/react/dist/esm/index.js")
@@ -202,6 +205,7 @@ const getBaseConfig = ({ command, mode, isSsrBuild, isPreview }) => {
202
205
  external: [
203
206
  // "react", "react-dom",
204
207
  "cookie",
208
+ "mongoose",
205
209
  ],
206
210
  noExternal: [
207
211
  ...rbPackagesNeedingEnvPolyfill,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/vite",
3
- "version": "0.97.0",
3
+ "version": "0.98.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -36,6 +36,7 @@
36
36
  "glob": "13.0.0",
37
37
  "libphonenumber-js": "1.12.31",
38
38
  "lucide-react": "0.560.0",
39
+ "mongoose": "9.0.1",
39
40
  "nocache": "4.0.0",
40
41
  "posthog-js": "1.304.0",
41
42
  "posthog-node": "5.17.2",