@rpcbase/vite 0.83.0 → 0.85.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.
- package/index.js +2 -1
- package/package.json +7 -7
- package/posthogSourcemapsPlugin.js +9 -2
package/index.js
CHANGED
|
@@ -158,7 +158,7 @@ const getBaseConfig = ({ command, mode, isSsrBuild, isPreview }) => {
|
|
|
158
158
|
inlinePattern: ["**/*.css"],
|
|
159
159
|
removeViteModuleLoader: false
|
|
160
160
|
}),
|
|
161
|
-
|
|
161
|
+
|
|
162
162
|
isProduction && posthogSourcemapsPlugin({}),
|
|
163
163
|
].filter(Boolean),
|
|
164
164
|
define: {
|
|
@@ -319,6 +319,7 @@ export const createServer = viteCreateServer
|
|
|
319
319
|
// return viteServer
|
|
320
320
|
// }
|
|
321
321
|
|
|
322
|
+
// TODO: I think is is unused, verify and remove if so
|
|
322
323
|
export const disableAppCache = (app) => {
|
|
323
324
|
app.set("etag", false)
|
|
324
325
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpcbase/vite",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.85.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
"@tailwindcss/vite": "4.1.17",
|
|
30
30
|
"@vitejs/plugin-react": "5.1.1",
|
|
31
31
|
"clsx": "2.1.1",
|
|
32
|
-
"glob": "
|
|
32
|
+
"glob": "13.0.0",
|
|
33
33
|
"libphonenumber-js": "1.12.26",
|
|
34
|
-
"lucide-react": "0.
|
|
34
|
+
"lucide-react": "0.554.0",
|
|
35
35
|
"nocache": "4.0.0",
|
|
36
|
-
"posthog-js": "1.
|
|
37
|
-
"posthog-node": "5.
|
|
36
|
+
"posthog-js": "1.298.0",
|
|
37
|
+
"posthog-node": "5.14.0",
|
|
38
38
|
"react": "19.2.0",
|
|
39
39
|
"react-dom": "19.2.0",
|
|
40
|
-
"react-hook-form": "7.66.
|
|
40
|
+
"react-hook-form": "7.66.1",
|
|
41
41
|
"react-router": "7.9.6",
|
|
42
42
|
"tailwindcss": "4.1.17",
|
|
43
43
|
"validator": "13.15.23",
|
|
44
|
-
"vite": "7.2.
|
|
44
|
+
"vite": "7.2.4",
|
|
45
45
|
"vite-plugin-html": "3.2.2",
|
|
46
46
|
"vite-plugin-singlefile": "2.3.0",
|
|
47
47
|
"zod": "4.1.12"
|
|
@@ -47,15 +47,22 @@ export function posthogSourcemapsPlugin(opts = {}) {
|
|
|
47
47
|
name: "posthog-sourcemaps",
|
|
48
48
|
apply: "build",
|
|
49
49
|
closeBundle: async () => {
|
|
50
|
+
const orange = "\x1b[38;5;208m"
|
|
51
|
+
const reset = "\x1b[0m"
|
|
52
|
+
|
|
50
53
|
const envId = process.env.POSTHOG_CLI_ENV_ID
|
|
51
54
|
const token = process.env.POSTHOG_CLI_TOKEN
|
|
52
55
|
if (!envId || !token) {
|
|
53
|
-
|
|
54
|
-
const reset = "\x1b[0m"
|
|
56
|
+
|
|
55
57
|
console.warn(`${orange}posthog-sourcemaps: plugin is enabled but no env vars for auth configured (POSTHOG_CLI_ENV_ID/POSTHOG_CLI_TOKEN). Skipping without failing.${reset}`)
|
|
56
58
|
return
|
|
57
59
|
}
|
|
58
60
|
|
|
61
|
+
if (!process.env.CI) {
|
|
62
|
+
console.warn(`${orange}posthog-sourcemaps: plugin has correct configuration, but refusing to run when process.env.CI is not set. Skipping without failing.${reset}`)
|
|
63
|
+
return
|
|
64
|
+
}
|
|
65
|
+
|
|
59
66
|
const injectArgs = ["sourcemap", "inject", "--directory", directory]
|
|
60
67
|
if (version) injectArgs.push("--version", version)
|
|
61
68
|
|