@zenuml/core 3.47.6 → 3.47.7
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.
- package/dist/zenuml.esm.mjs +301 -301
- package/dist/zenuml.js +32 -32
- package/package.json +3 -1
- package/vite.config.lib.ts +14 -7
- package/dist/stats.html +0 -4949
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenuml/core",
|
|
3
|
-
"version": "3.47.
|
|
3
|
+
"version": "3.47.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
"build:site": "bun run --bun vite build",
|
|
13
13
|
"build:gh-pages": "bun run --bun vite build --mode gh-pages",
|
|
14
14
|
"build": "bun run --bun vite build -c vite.config.lib.ts",
|
|
15
|
+
"build:release": "RELEASE=1 bun run --bun vite build -c vite.config.lib.ts",
|
|
16
|
+
"build:analyze": "RELEASE=1 ANALYZE=1 bun run --bun vite build -c vite.config.lib.ts",
|
|
15
17
|
"test": "bun test src test/unit",
|
|
16
18
|
"pw": "playwright test --reporter=list",
|
|
17
19
|
"pw:ci": "playwright test",
|
package/vite.config.lib.ts
CHANGED
|
@@ -20,6 +20,9 @@ const gitBranch = process.env.DOCKER
|
|
|
20
20
|
? ""
|
|
21
21
|
: execSync("git branch --show-current").toString().trim();
|
|
22
22
|
|
|
23
|
+
const isReleaseBuild = process.env.RELEASE === "1";
|
|
24
|
+
const shouldAnalyzeBundle = process.env.ANALYZE === "1";
|
|
25
|
+
|
|
23
26
|
// Merge all cloud-provider icon SVGs into a single chunk instead of 500+
|
|
24
27
|
function manualChunks(id: string) {
|
|
25
28
|
if (
|
|
@@ -45,7 +48,7 @@ export default defineConfig({
|
|
|
45
48
|
name: "ZenUML",
|
|
46
49
|
fileName: "zenuml",
|
|
47
50
|
},
|
|
48
|
-
sourcemap:
|
|
51
|
+
sourcemap: isReleaseBuild,
|
|
49
52
|
rollupOptions: {
|
|
50
53
|
output: [
|
|
51
54
|
{
|
|
@@ -70,12 +73,16 @@ export default defineConfig({
|
|
|
70
73
|
svgr(),
|
|
71
74
|
react(),
|
|
72
75
|
cssInjectedByJsPlugin(),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
...(shouldAnalyzeBundle
|
|
77
|
+
? [
|
|
78
|
+
visualizer({
|
|
79
|
+
filename: "dist/stats.html",
|
|
80
|
+
open: false,
|
|
81
|
+
gzipSize: true,
|
|
82
|
+
brotliSize: true,
|
|
83
|
+
}),
|
|
84
|
+
]
|
|
85
|
+
: []),
|
|
79
86
|
],
|
|
80
87
|
define: {
|
|
81
88
|
"process.env.NODE_ENV": '"production"',
|