@inglorious/ssx 2.1.3 → 2.1.4
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/package.json +4 -5
- package/src/build/vite-config.js +7 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/ssx",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "Server-Side-X. Xecution? Xperience? Who knows.",
|
|
5
5
|
"author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,20 +59,19 @@
|
|
|
59
59
|
"markdown-it": "^14.1.0",
|
|
60
60
|
"markdown-it-texmath": "^1.0.0",
|
|
61
61
|
"mermaid": "^11.12.2",
|
|
62
|
-
"rollup-plugin-minify-template-literals": "^1.1.7",
|
|
63
62
|
"sharp": "^0.34.5",
|
|
64
63
|
"svgo": "^4.0.0",
|
|
65
64
|
"vite": "^7.1.3",
|
|
66
65
|
"vite-plugin-image-optimizer": "^2.0.3",
|
|
67
|
-
"@inglorious/web": "6.3.0",
|
|
68
66
|
"@inglorious/store": "11.0.0",
|
|
67
|
+
"@inglorious/web": "6.4.0",
|
|
69
68
|
"@inglorious/utils": "3.8.0"
|
|
70
69
|
},
|
|
71
70
|
"devDependencies": {
|
|
72
71
|
"prettier": "^3.6.2",
|
|
73
72
|
"vitest": "^1.6.1",
|
|
74
|
-
"@inglorious/
|
|
75
|
-
"@inglorious/
|
|
73
|
+
"@inglorious/eslint-config": "1.1.2",
|
|
74
|
+
"@inglorious/logo": "3.0.9"
|
|
76
75
|
},
|
|
77
76
|
"engines": {
|
|
78
77
|
"node": ">= 22"
|
package/src/build/vite-config.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import path from "node:path"
|
|
2
2
|
|
|
3
|
-
import { minifyTemplateLiterals } from "rollup-plugin-minify-template-literals"
|
|
4
3
|
import { mergeConfig } from "vite"
|
|
5
4
|
import { ViteImageOptimizer } from "vite-plugin-image-optimizer"
|
|
6
5
|
|
|
7
6
|
import { markdownPlugin } from "../utils/markdown.js"
|
|
8
7
|
|
|
9
|
-
// import { minifyTemplateLiterals } from "rollup-plugin-minify-template-literals"
|
|
10
|
-
|
|
11
8
|
/**
|
|
12
9
|
* Generate Vite config for building the client bundle
|
|
13
10
|
*/
|
|
@@ -22,7 +19,13 @@ export function createViteConfig(options = {}) {
|
|
|
22
19
|
root: process.cwd(),
|
|
23
20
|
publicDir: publicDir,
|
|
24
21
|
plugins: [
|
|
25
|
-
minifyTemplateLiterals()
|
|
22
|
+
// NOTE: do not add minifyTemplateLiterals() here. It minifies lit
|
|
23
|
+
// templates as HTML, where `<circle/>` is an unknown non-void element,
|
|
24
|
+
// so it strips the XML self-closing slash. In an svg`` template that
|
|
25
|
+
// silently reparents every following sibling as a child of the shape
|
|
26
|
+
// (`<circle/><text/>` becomes `<circle><text/></circle>`), and SVG
|
|
27
|
+
// shapes don't render children — charts vanish. html-minifier-terser's
|
|
28
|
+
// keepClosingSlash only covers void HTML elements, so it can't fix it.
|
|
26
29
|
ViteImageOptimizer({
|
|
27
30
|
// Options can be overridden by the user in site.config.js via the `vite` property
|
|
28
31
|
}),
|