@inglorious/ssx 2.1.3 → 2.1.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inglorious/ssx",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
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",
@@ -48,6 +48,9 @@
48
48
  },
49
49
  "sideEffects": false,
50
50
  "dependencies": {
51
+ "@inglorious/store": "11.0.1",
52
+ "@inglorious/utils": "3.8.0",
53
+ "@inglorious/web": "6.4.1",
51
54
  "@lit-labs/ssr": "^4.0.0",
52
55
  "commander": "^14.0.2",
53
56
  "connect": "^3.7.0",
@@ -59,20 +62,16 @@
59
62
  "markdown-it": "^14.1.0",
60
63
  "markdown-it-texmath": "^1.0.0",
61
64
  "mermaid": "^11.12.2",
62
- "rollup-plugin-minify-template-literals": "^1.1.7",
63
65
  "sharp": "^0.34.5",
64
66
  "svgo": "^4.0.0",
65
67
  "vite": "^7.1.3",
66
- "vite-plugin-image-optimizer": "^2.0.3",
67
- "@inglorious/web": "6.3.0",
68
- "@inglorious/store": "11.0.0",
69
- "@inglorious/utils": "3.8.0"
68
+ "vite-plugin-image-optimizer": "^2.0.3"
70
69
  },
71
70
  "devDependencies": {
71
+ "@inglorious/logo": "3.0.10",
72
+ "@inglorious/eslint-config": "1.1.2",
72
73
  "prettier": "^3.6.2",
73
- "vitest": "^1.6.1",
74
- "@inglorious/logo": "3.0.8",
75
- "@inglorious/eslint-config": "1.1.2"
74
+ "vitest": "^1.6.1"
76
75
  },
77
76
  "engines": {
78
77
  "node": ">= 22"
@@ -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
  }),