Skip to content

Commit b6eff13

Browse files
committed
chore(web): remove vite-plugin-singlefile
1 parent 4aeb529 commit b6eff13

File tree

3 files changed

+4
-98
lines changed

3 files changed

+4
-98
lines changed

webdriver-ts-results/package-lock.json

Lines changed: 0 additions & 87 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webdriver-ts-results/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"scripts": {
1414
"dev": "vite",
1515
"build": "tsc && vite build",
16-
"build:prod": "tsc && SINGLEFILE=true vite build && mv dist/index.html table.html",
1716
"lint": "eslint src/",
1817
"preview": "vite preview"
1918
},
@@ -24,7 +23,6 @@
2423
"@vitejs/plugin-react": "^4.2.0",
2524
"typescript": "^5.2.2",
2625
"vite": "^5.0.2",
27-
"vite-plugin-singlefile": "^0.13.5",
2826
"vite-tsconfig-paths": "^4.2.1"
2927
}
3028
}

webdriver-ts-results/vite.config.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
import { defineConfig } from "vite";
2-
import { viteSingleFile } from "vite-plugin-singlefile";
32
import tsconfigPaths from "vite-tsconfig-paths";
43
import react from "@vitejs/plugin-react";
54

6-
const needSinglefile = !!process.env.SINGLEFILE;
7-
85
// https://vitejs.dev/config/
96
export default defineConfig({
107
base: "",
118
build: {
129
assetsDir: "",
1310
rollupOptions: {
1411
output: {
15-
manualChunks: !needSinglefile
16-
? {
17-
plotly: ["plotly.js-cartesian-dist"],
18-
}
19-
: undefined,
12+
manualChunks: {
13+
plotly: ["plotly.js-cartesian-dist"],
14+
},
2015
},
2116
},
2217
},
23-
plugins: [react(), tsconfigPaths(), needSinglefile && viteSingleFile()],
18+
plugins: [react(), tsconfigPaths()],
2419
});

0 commit comments

Comments
 (0)