We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db8ec8e commit 4db7e39Copy full SHA for 4db7e39
src/ui/vite.config.mjs
@@ -36,21 +36,29 @@ export default defineConfig({
36
manualChunks(id) {
37
const HugeLibraries = [
38
"@mantine",
39
+ "moment-timezone",
40
+ "moment",
41
"@azure",
42
"@tabler",
43
"axios",
- "react-pdf",
44
+ "react-router",
45
]; // modify as required based on libraries in use
46
if (
47
HugeLibraries.some((libName) =>
48
id.includes(`node_modules/${libName}`),
49
)
50
) {
- return id
51
+ return `vendor/${id
52
.toString()
53
.split("node_modules/")[1]
54
.split("/")[0]
- .toString();
55
+ .toString()}`;
56
+ }
57
+ if (id.includes("node_modules")) {
58
+ return `vendor/main`;
59
60
+ if (id.includes("src/common")) {
61
+ return "common";
62
}
63
},
64
0 commit comments