@shopware/unocss-design-tokens-layer 1.0.1 → 1.0.2
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/README.md +16 -3
- package/package.json +5 -5
- package/uno.runtime.config.ts +5 -1
package/README.md
CHANGED
|
@@ -47,10 +47,23 @@ export default mergeConfigs([
|
|
|
47
47
|
|
|
48
48
|
Full changelog for stable version is available [here](https://github.com/shopware/frontends/blob/main/packages/unocss-design-tokens-layer/CHANGELOG.md)
|
|
49
49
|
|
|
50
|
-
### Latest changes: 1.0.
|
|
50
|
+
### Latest changes: 1.0.2
|
|
51
51
|
|
|
52
52
|
### Patch Changes
|
|
53
53
|
|
|
54
|
-
- [#
|
|
54
|
+
- [#2632](https://github.com/shopware/frontends/pull/2632) [`9274aa8`](https://github.com/shopware/frontends/commit/9274aa86b8b4c6741fb45c595e239e6f733284db) Thanks [@mkucmus](https://github.com/mkucmus)! - Load `presetWind3` from `@unocss/preset-wind3` instead of the `unocss` barrel in
|
|
55
|
+
`uno.runtime.config.ts`.
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
That file is imported by a client plugin, and the barrel statically re-exports
|
|
58
|
+
`@unocss/transformer-attributify-jsx`. That transformer depends on `oxc-parser`, whose
|
|
59
|
+
browser entry imports `@oxc-parser/binding-wasm32-wasi`. The binding is not present in a
|
|
60
|
+
production install, so the client bundle failed to build:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
[vite]: Rolldown failed to resolve import "@oxc-parser/binding-wasm32-wasi"
|
|
64
|
+
from "oxc-parser/src-js/wasm.js"
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
The parser never runs in the browser. Importing the preset directly keeps it out of the
|
|
68
|
+
client graph and also stops a 1.4 MB `.wasm` file and its worker from being emitted into
|
|
69
|
+
the public bundle.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopware/unocss-design-tokens-layer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Reusable Nuxt Layer for Shopware design tokens and UnoCSS configuration",
|
|
5
5
|
"author": "Shopware",
|
|
6
6
|
"repository": {
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
"uno.runtime.config.ts"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@iconify-json/carbon": "1.2.
|
|
39
|
-
"@unocss/nuxt": "66.
|
|
38
|
+
"@iconify-json/carbon": "1.2.25",
|
|
39
|
+
"@unocss/nuxt": "66.10.0",
|
|
40
40
|
"@unocss/core": "66.7.5",
|
|
41
41
|
"@unocss/preset-wind3": "66.7.5",
|
|
42
42
|
"@unocss/runtime": "66.7.5",
|
|
43
43
|
"unocss": "66.7.5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@nuxt/schema": "4.
|
|
46
|
+
"@nuxt/schema": "4.5.2",
|
|
47
47
|
"@typescript/native-preview": "7.0.0-dev.20260205.1",
|
|
48
|
-
"nuxt": "4.
|
|
48
|
+
"nuxt": "4.5.2",
|
|
49
49
|
"typescript": "5.9.3",
|
|
50
50
|
"unbuild": "3.6.1",
|
|
51
51
|
"tsconfig": "0.0.0"
|
package/uno.runtime.config.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { ConfigBase } from "@unocss/core";
|
|
2
|
-
|
|
2
|
+
// Import the preset from its own package, not the `unocss` barrel. This config is
|
|
3
|
+
// loaded by a client plugin, and the barrel statically re-exports
|
|
4
|
+
// `@unocss/transformer-attributify-jsx`, which pulls `oxc-parser` and its wasm
|
|
5
|
+
// binding into the client bundle.
|
|
6
|
+
import { presetWind3 } from "@unocss/preset-wind3";
|
|
3
7
|
|
|
4
8
|
import { designTokenTheme } from "./theme";
|
|
5
9
|
|