@db-ux/react-core-components 4.5.4-mcp-e4cd7e6 → 4.5.4-mcp-server-standalone-debb5c1

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.
Files changed (2) hide show
  1. package/README.md +30 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -44,6 +44,36 @@ import "@db-ux/core-components/build/styles/rollup.css";
44
44
 
45
45
  </details>
46
46
 
47
+ > **Vite 8 Note:** Starting with Vite 8, the default CSS minifier was changed to [LightningCSS](https://lightningcss.dev/), which provides buggy transformations for modern CSS features used by the DB UX Design System (e.g. `light-dark()` CSS function). We might provide a specific configuration necessary to mitigate those problems in the near future. To keep CSS output stable in the meantime, configure `vite.config.ts` like this:
48
+
49
+ ```ts
50
+ // vite.config.ts
51
+ export default defineConfig({
52
+ build: {
53
+ cssMinify: "esbuild"
54
+ }
55
+ });
56
+ ```
57
+
58
+ > Alternatively, you could define a [browserslist](https://browsersl.ist/) based on your individual browser support strategy — which might be totally different from the list Vite 8 defines by default (targeting browsers from the early 2020s):
59
+
60
+ ```ts
61
+ // Note: You need to install the required packages first:
62
+ // npm install -D lightningcss browserslist
63
+
64
+ // vite.config.ts
65
+ import { browserslistToTargets } from "lightningcss";
66
+ import browserslist from "browserslist";
67
+
68
+ export default defineConfig({
69
+ css: {
70
+ lightningcss: {
71
+ targets: browserslistToTargets(browserslist(">= 0.5%, last 2 major versions, Firefox ESR, not dead"))
72
+ }
73
+ }
74
+ });
75
+ ```
76
+
47
77
  > **Note:** The `@db-ux/core-components/build/styles/relative` file contains optional and all components styles. If you consider performance issues see [@db-ux/core-components](https://www.npmjs.com/package/@db-ux/core-components) for more information.
48
78
 
49
79
  ### DB Theme
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@db-ux/react-core-components",
3
- "version": "4.5.4-mcp-e4cd7e6",
3
+ "version": "4.5.4-mcp-server-standalone-debb5c1",
4
4
  "description": "React components for @db-ux/core-components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "sideEffects": false,
43
43
  "dependencies": {
44
- "@db-ux/core-components": "4.5.4-mcp-e4cd7e6",
45
- "@db-ux/core-foundations": "4.5.4-mcp-e4cd7e6"
44
+ "@db-ux/core-components": "4.5.4-mcp-server-standalone-debb5c1",
45
+ "@db-ux/core-foundations": "4.5.4-mcp-server-standalone-debb5c1"
46
46
  }
47
47
  }