@rpcbase/vite 0.34.0 → 0.36.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 +6 -0
  2. package/package.json +3 -2
package/index.js CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  loadEnv,
8
8
  } from "vite"
9
9
 
10
+ import { viteSingleFile } from "vite-plugin-singlefile"
10
11
  import { sentryVitePlugin } from "@sentry/vite-plugin"
11
12
  import react from "@vitejs/plugin-react-swc"
12
13
  import { createHtmlPlugin } from "vite-plugin-html"
@@ -87,6 +88,10 @@ const getBaseConfig = ({ command, mode, isSsrBuild, isPreview }) => {
87
88
  project: process.env.SENTRY_PROJECT,
88
89
  authToken: process.env.SENTRY_AUTH_TOKEN,
89
90
  }),
91
+ viteSingleFile({
92
+ inlinePattern: ["**/*.css"],
93
+ removeViteModuleLoader: false
94
+ }),
90
95
  ].filter(Boolean),
91
96
  define: {
92
97
  __vite_env__: {
@@ -96,6 +101,7 @@ const getBaseConfig = ({ command, mode, isSsrBuild, isPreview }) => {
96
101
  envPrefix: allowedEnvPrefixes,
97
102
  publicDir: path.join(process.cwd(), "./src/client/public"),
98
103
  build: {
104
+ cssCodeSplit: false,
99
105
  outDir: "./build/dist/",
100
106
  rollupOptions: {
101
107
  input: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/vite",
3
- "version": "0.34.0",
3
+ "version": "0.36.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "scripts": {
@@ -36,7 +36,7 @@
36
36
  "maplibre-gl": "5.5.0",
37
37
  "nocache": "4.0.0",
38
38
  "openai": "4.98.0",
39
- "posthog-js": "1.240.6",
39
+ "posthog-js": "1.245.0",
40
40
  "posthog-node": "4.17.1",
41
41
  "react": "19.1.0",
42
42
  "react-day-picker": "9.6.7",
@@ -47,6 +47,7 @@
47
47
  "validator": "13.15.0",
48
48
  "vite": "6.3.5",
49
49
  "vite-plugin-html": "3.2.2",
50
+ "vite-plugin-singlefile": "2.2.0",
50
51
  "zod": "3.24.4"
51
52
  }
52
53
  }