adminforth 3.31.14 → 3.31.16

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.
@@ -37,7 +37,22 @@ export default defineConfig({
37
37
  '@': fileURLToPath(new URL('./src', import.meta.url)),
38
38
  '@@': fileURLToPath(new URL('./src/custom', import.meta.url)),
39
39
  }
40
- },
40
+ },
41
+ build: {
42
+ rollupOptions: {
43
+ output: {
44
+ manualChunks(id) {
45
+ // reduce the size of the vendor chunk
46
+ // to only include the package name
47
+ // helps to reduce consumption of memory
48
+ if (id.includes('node_modules/')) {
49
+ // take the last node_modules segment: pnpm nests packages as node_modules/.pnpm/<pkg>@<version>/node_modules/<pkg>
50
+ return id.split('node_modules/').pop()!.split('/')[0];
51
+ }
52
+ },
53
+ },
54
+ },
55
+ },
41
56
  css: {
42
57
  preprocessorOptions: {
43
58
  scss: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "3.31.14",
3
+ "version": "3.31.16",
4
4
  "description": "OpenSource Agent-Native forth-generation admin panel",
5
5
  "keywords": [
6
6
  "adminforth",