adminforth 3.31.11 → 3.31.12

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.
@@ -42,35 +42,18 @@ export default defineConfig({
42
42
  rollupOptions: {
43
43
  output: {
44
44
  manualChunks(id) {
45
+ // dayjs locales are imported on demand, keep them out of the eagerly loaded dayjs chunk
46
+ if (id.includes('dayjs/locale/')) {
47
+ return;
48
+ }
45
49
  // reduce the size of the vendor chunk
46
50
  // to only include the package name
47
51
  // helps to reduce consumption of memory
48
- if (id.includes('node_modules')) {
49
- return id.toString().split('node_modules/')[1].split('/')[0].toString();
50
- }
51
- },
52
-
53
- // by default servers doesnt returns dotfiles
54
- // so if we'll generate file with name like ".pnpm-BLnlxqcJ.js"
55
- // it won't be loaded
56
- assetFileNames: (chunkInfo) => {
57
- if (chunkInfo.name && chunkInfo.name.startsWith('.pnpm')) {
58
- return `assets/pnpm-${chunkInfo.name.slice(6)}-[hash].[ext]`;
52
+ if (id.includes('node_modules/')) {
53
+ // take the last node_modules segment: pnpm nests packages as node_modules/.pnpm/<pkg>@<version>/node_modules/<pkg>
54
+ return id.split('node_modules/').pop()!.split('/')[0];
59
55
  }
60
- return 'assets/[name]-[hash].[ext]';
61
56
  },
62
- entryFileNames: (chunkInfo) => {
63
- if (chunkInfo.name && chunkInfo.name.startsWith('.pnpm')) {
64
- return `assets/pnpm-${chunkInfo.name.slice(6)}-[hash].js`;
65
- }
66
- return 'assets/[name]-[hash].js';
67
- },
68
- chunkFileNames: (chunkInfo) => {
69
- if (chunkInfo.name && chunkInfo.name.startsWith('.pnpm')) {
70
- return `assets/pnpm-${chunkInfo.name.slice(6)}-[hash].js`;
71
- }
72
- return 'assets/[name]-[hash].js';
73
- }
74
57
  },
75
58
  },
76
59
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "3.31.11",
3
+ "version": "3.31.12",
4
4
  "description": "OpenSource Agent-Native forth-generation admin panel",
5
5
  "keywords": [
6
6
  "adminforth",