@griffel/transform 3.0.5 → 3.0.6
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/LICENSE.md +21 -0
- package/package.json +6 -5
- package/src/constants.d.mts +2 -0
- package/src/{constants.mts → constants.mjs} +1 -0
- package/src/constants.mjs.map +1 -0
- package/src/evaluation/astEvaluator.d.mts +20 -0
- package/src/evaluation/astEvaluator.mjs +90 -0
- package/src/evaluation/astEvaluator.mjs.map +1 -0
- package/src/evaluation/batchEvaluator.d.mts +13 -0
- package/src/evaluation/batchEvaluator.mjs +54 -0
- package/src/evaluation/batchEvaluator.mjs.map +1 -0
- package/src/evaluation/evalCache.d.mts +9 -0
- package/src/evaluation/evalCache.mjs +65 -0
- package/src/evaluation/evalCache.mjs.map +1 -0
- package/src/evaluation/fluentTokensPlugin.d.mts +2 -0
- package/src/evaluation/fluentTokensPlugin.mjs +70 -0
- package/src/evaluation/fluentTokensPlugin.mjs.map +1 -0
- package/src/evaluation/module.d.mts +44 -0
- package/src/evaluation/module.mjs +207 -0
- package/src/evaluation/module.mjs.map +1 -0
- package/src/evaluation/process.d.mts +24 -0
- package/src/evaluation/{process.mts → process.mjs} +7 -12
- package/src/evaluation/process.mjs.map +1 -0
- package/src/evaluation/types.d.mts +34 -0
- package/src/evaluation/types.mjs +2 -0
- package/src/evaluation/types.mjs.map +1 -0
- package/src/evaluation/vmEvaluator.d.mts +3 -0
- package/src/evaluation/vmEvaluator.mjs +33 -0
- package/src/evaluation/vmEvaluator.mjs.map +1 -0
- package/src/{index.mts → index.d.mts} +0 -4
- package/src/index.mjs +9 -0
- package/src/index.mjs.map +1 -0
- package/src/transformSync.d.mts +41 -0
- package/src/transformSync.mjs +253 -0
- package/src/transformSync.mjs.map +1 -0
- package/src/types.d.mts +12 -0
- package/src/types.mjs +2 -0
- package/src/types.mjs.map +1 -0
- package/src/utils/convertESMtoCJS.d.mts +6 -0
- package/src/utils/convertESMtoCJS.mjs +203 -0
- package/src/utils/convertESMtoCJS.mjs.map +1 -0
- package/src/utils/dedupeCSSRules.d.mts +6 -0
- package/src/utils/dedupeCSSRules.mjs +19 -0
- package/src/utils/dedupeCSSRules.mjs.map +1 -0
- package/CHANGELOG.json +0 -404
- package/CHANGELOG.md +0 -130
- package/__fixtures__/assets/blank.jpg +0 -0
- package/__fixtures__/assets/code.ts +0 -12
- package/__fixtures__/assets/empty.jpg +0 -0
- package/__fixtures__/assets/output.meta.json +0 -12
- package/__fixtures__/assets/output.ts +0 -12
- package/__fixtures__/assets-multiple-declarations/blank.jpg +0 -0
- package/__fixtures__/assets-multiple-declarations/code.ts +0 -8
- package/__fixtures__/assets-multiple-declarations/empty.jpg +0 -0
- package/__fixtures__/assets-multiple-declarations/output.meta.json +0 -9
- package/__fixtures__/assets-multiple-declarations/output.ts +0 -6
- package/__fixtures__/assets-reset-styles/blank.jpg +0 -0
- package/__fixtures__/assets-reset-styles/code.ts +0 -11
- package/__fixtures__/assets-reset-styles/empty.jpg +0 -0
- package/__fixtures__/assets-reset-styles/output.meta.json +0 -11
- package/__fixtures__/assets-reset-styles/output.ts +0 -7
- package/__fixtures__/assets-urls/code.ts +0 -13
- package/__fixtures__/assets-urls/output.meta.json +0 -14
- package/__fixtures__/assets-urls/output.ts +0 -10
- package/__fixtures__/at-rules/code.ts +0 -14
- package/__fixtures__/at-rules/output.meta.json +0 -15
- package/__fixtures__/at-rules/output.ts +0 -10
- package/__fixtures__/config-classname-hash-salt/code.ts +0 -5
- package/__fixtures__/config-classname-hash-salt/output.meta.json +0 -7
- package/__fixtures__/config-classname-hash-salt/output.ts +0 -3
- package/__fixtures__/config-evaluation-rules/code.ts +0 -8
- package/__fixtures__/config-evaluation-rules/consts.ts +0 -1
- package/__fixtures__/config-evaluation-rules/output.meta.json +0 -7
- package/__fixtures__/config-evaluation-rules/output.ts +0 -4
- package/__fixtures__/config-evaluation-rules/sampleEvaluator.cjs +0 -12
- package/__fixtures__/error-argument-count/fixture.js +0 -4
- package/__fixtures__/error-cjs/fixture.js +0 -4
- package/__fixtures__/error-on-undefined/fixture.ts +0 -7
- package/__fixtures__/error-on-undefined/tokens.ts +0 -1
- package/__fixtures__/export-default/code.ts +0 -6
- package/__fixtures__/export-default/output.meta.json +0 -14
- package/__fixtures__/export-default/output.ts +0 -6
- package/__fixtures__/function-mixin/code.ts +0 -6
- package/__fixtures__/function-mixin/mixins.ts +0 -7
- package/__fixtures__/function-mixin/output.meta.json +0 -7
- package/__fixtures__/function-mixin/output.ts +0 -4
- package/__fixtures__/function-mixin/tokens.ts +0 -3
- package/__fixtures__/import-alias/code.ts +0 -5
- package/__fixtures__/import-alias/output.meta.json +0 -7
- package/__fixtures__/import-alias/output.ts +0 -3
- package/__fixtures__/import-custom-module/code.ts +0 -6
- package/__fixtures__/import-custom-module/output.meta.json +0 -7
- package/__fixtures__/import-custom-module/output.ts +0 -4
- package/__fixtures__/keyframes/code.ts +0 -22
- package/__fixtures__/keyframes/output.meta.json +0 -17
- package/__fixtures__/keyframes/output.ts +0 -6
- package/__fixtures__/multiple-declarations/code.ts +0 -8
- package/__fixtures__/multiple-declarations/output.meta.json +0 -7
- package/__fixtures__/multiple-declarations/output.ts +0 -4
- package/__fixtures__/non-existing-module-call/code.ts +0 -10
- package/__fixtures__/non-existing-module-call/module.ts +0 -13
- package/__fixtures__/non-existing-module-call/output.meta.json +0 -7
- package/__fixtures__/non-existing-module-call/output.ts +0 -6
- package/__fixtures__/object/code.ts +0 -6
- package/__fixtures__/object/output.meta.json +0 -14
- package/__fixtures__/object/output.ts +0 -6
- package/__fixtures__/object-computed-keys/code.ts +0 -8
- package/__fixtures__/object-computed-keys/output.meta.json +0 -14
- package/__fixtures__/object-computed-keys/output.ts +0 -8
- package/__fixtures__/object-imported-keys/code.ts +0 -9
- package/__fixtures__/object-imported-keys/consts.ts +0 -2
- package/__fixtures__/object-imported-keys/output.meta.json +0 -7
- package/__fixtures__/object-imported-keys/output.ts +0 -4
- package/__fixtures__/object-mixins/code.ts +0 -11
- package/__fixtures__/object-mixins/mixins.ts +0 -17
- package/__fixtures__/object-mixins/output.meta.json +0 -16
- package/__fixtures__/object-mixins/output.ts +0 -10
- package/__fixtures__/object-mixins/tokens.ts +0 -3
- package/__fixtures__/object-nesting/code.ts +0 -13
- package/__fixtures__/object-nesting/consts.ts +0 -1
- package/__fixtures__/object-nesting/output.meta.json +0 -9
- package/__fixtures__/object-nesting/output.ts +0 -6
- package/__fixtures__/object-reset/code.ts +0 -8
- package/__fixtures__/object-reset/output.meta.json +0 -7
- package/__fixtures__/object-reset/output.ts +0 -5
- package/__fixtures__/object-sequence-expr/code.ts +0 -16
- package/__fixtures__/object-sequence-expr/output.meta.json +0 -7
- package/__fixtures__/object-sequence-expr/output.ts +0 -7
- package/__fixtures__/object-shorthands/code.ts +0 -8
- package/__fixtures__/object-shorthands/output.meta.json +0 -20
- package/__fixtures__/object-shorthands/output.ts +0 -5
- package/__fixtures__/object-variables/code.ts +0 -9
- package/__fixtures__/object-variables/output.meta.json +0 -15
- package/__fixtures__/object-variables/output.ts +0 -9
- package/__fixtures__/object-variables/vars.ts +0 -5
- package/__fixtures__/reset-styles/code.ts +0 -6
- package/__fixtures__/reset-styles/output.meta.json +0 -7
- package/__fixtures__/reset-styles/output.ts +0 -3
- package/__fixtures__/reset-styles-at-rules/code.ts +0 -7
- package/__fixtures__/reset-styles-at-rules/output.meta.json +0 -8
- package/__fixtures__/reset-styles-at-rules/output.ts +0 -3
- package/__fixtures__/rules-with-metadata/code.ts +0 -9
- package/__fixtures__/rules-with-metadata/output.meta.json +0 -14
- package/__fixtures__/rules-with-metadata/output.ts +0 -3
- package/__fixtures__/shared-mixins/code.ts +0 -7
- package/__fixtures__/shared-mixins/mixins.ts +0 -6
- package/__fixtures__/shared-mixins/output.meta.json +0 -7
- package/__fixtures__/shared-mixins/output.ts +0 -8
- package/__fixtures__/static-styles/code.ts +0 -7
- package/__fixtures__/static-styles/output.meta.json +0 -7
- package/__fixtures__/static-styles/output.ts +0 -3
- package/__fixtures__/static-styles-array/code.ts +0 -10
- package/__fixtures__/static-styles-array/output.meta.json +0 -7
- package/__fixtures__/static-styles-array/output.ts +0 -3
- package/__fixtures__/static-styles-string/code.ts +0 -3
- package/__fixtures__/static-styles-string/output.meta.json +0 -7
- package/__fixtures__/static-styles-string/output.ts +0 -3
- package/__fixtures__/tokens/code.ts +0 -11
- package/__fixtures__/tokens/output.meta.json +0 -12
- package/__fixtures__/tokens/output.ts +0 -7
- package/__fixtures__/tokens/tokens.ts +0 -4
- package/__fixtures__/unsupported-css-properties/fixture.ts +0 -16
- package/__fixtures__/unsupported-css-properties/output.meta.json +0 -5
- package/__fixtures__/unsupported-css-properties/output.ts +0 -3
- package/eslint.config.mjs +0 -31
- package/project.json +0 -51
- package/src/evaluation/astEvaluator.mts +0 -109
- package/src/evaluation/astEvaluator.test.mts +0 -126
- package/src/evaluation/batchEvaluator.mts +0 -79
- package/src/evaluation/evalCache.mts +0 -84
- package/src/evaluation/fluentTokensPlugin.mts +0 -82
- package/src/evaluation/fluentTokensPlugin.test.mts +0 -130
- package/src/evaluation/module.mts +0 -271
- package/src/evaluation/module.test.mts +0 -133
- package/src/evaluation/types.mts +0 -49
- package/src/evaluation/vmEvaluator.mts +0 -45
- package/src/evaluation/vmEvaluator.test.mts +0 -30
- package/src/transformSync.mts +0 -425
- package/src/transformSync.test.mts +0 -429
- package/src/types.mts +0 -13
- package/src/utils/convertESMtoCJS.mts +0 -226
- package/src/utils/convertESMtoCJS.test.mts +0 -159
- package/src/utils/dedupeCSSRules.mts +0 -25
- package/src/utils/dedupeCSSRules.test.mts +0 -39
- package/tsconfig.json +0 -19
- package/tsconfig.lib.json +0 -30
- package/tsconfig.spec.json +0 -24
- package/vitest.config.mts +0 -18
package/CHANGELOG.json
DELETED
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@griffel/transform",
|
|
3
|
-
"entries": [
|
|
4
|
-
{
|
|
5
|
-
"date": "Thu, 21 May 2026 08:10:29 GMT",
|
|
6
|
-
"version": "3.0.5",
|
|
7
|
-
"tag": "@griffel/transform_v3.0.5",
|
|
8
|
-
"comments": {
|
|
9
|
-
"none": [
|
|
10
|
-
{
|
|
11
|
-
"author": "olfedias@microsoft.com",
|
|
12
|
-
"package": "@griffel/transform",
|
|
13
|
-
"commit": "f1e532569b99490e9e013ba45da448aef98f2116",
|
|
14
|
-
"comment": "chore: tighten ESLint rules and clean up redundant directives"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"author": "olfedias@microsoft.com",
|
|
18
|
-
"package": "@griffel/transform",
|
|
19
|
-
"commit": "1a8f167b8623ebf43c978c89532f094df113eeaf",
|
|
20
|
-
"comment": "chore: drop redundant globals from @griffel/transform vitest config"
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"patch": [
|
|
24
|
-
{
|
|
25
|
-
"author": "49699333+dependabot[bot]@users.noreply.github.com",
|
|
26
|
-
"package": "@griffel/transform",
|
|
27
|
-
"commit": "fc06eafe4ed5609106d761ed271c59475e287d38",
|
|
28
|
-
"comment": "chore(deps): bump oxc-parser"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"author": "49699333+dependabot[bot]@users.noreply.github.com",
|
|
32
|
-
"package": "@griffel/transform",
|
|
33
|
-
"commit": "3f59653ede24b4af33d1065ff3a88fdf837ab9e0",
|
|
34
|
-
"comment": "chore(deps): bump oxc-parser and oxc-transform"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"author": "49699333+dependabot[bot]@users.noreply.github.com",
|
|
38
|
-
"package": "@griffel/transform",
|
|
39
|
-
"commit": "ab6f709edc8cfaad0aa21dafb6148916188ab6df",
|
|
40
|
-
"comment": "chore(deps): bump oxc-parser"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"author": "beachball",
|
|
44
|
-
"package": "@griffel/transform",
|
|
45
|
-
"comment": "Bump @griffel/core to v1.21.1",
|
|
46
|
-
"commit": "not available"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"author": "beachball",
|
|
50
|
-
"package": "@griffel/transform",
|
|
51
|
-
"comment": "Bump @griffel/transform-shaker to v1.0.6",
|
|
52
|
-
"commit": "not available"
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"date": "Mon, 04 May 2026 12:34:39 GMT",
|
|
59
|
-
"tag": "@griffel/transform_v3.0.4",
|
|
60
|
-
"version": "3.0.4",
|
|
61
|
-
"comments": {
|
|
62
|
-
"none": [
|
|
63
|
-
{
|
|
64
|
-
"author": "olfedias@microsoft.com",
|
|
65
|
-
"package": "@griffel/transform",
|
|
66
|
-
"commit": "d00fc4734318a22c3a55e6339c0ab79959b55ca2",
|
|
67
|
-
"comment": "chore: bump vitest to 4.1.5 and vite to 8.0.10"
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
"patch": [
|
|
71
|
-
{
|
|
72
|
-
"author": "49699333+dependabot[bot]@users.noreply.github.com",
|
|
73
|
-
"package": "@griffel/transform",
|
|
74
|
-
"commit": "df2d0b3f60bbbedacf8065d7352f52d5d7abc520",
|
|
75
|
-
"comment": "chore(deps): bump oxc-parser"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"author": "beachball",
|
|
79
|
-
"package": "@griffel/transform",
|
|
80
|
-
"comment": "Bump @griffel/core to v1.21.0",
|
|
81
|
-
"commit": "d83f3c21bd7764c9396d3879c63cb087f3d37ba8"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"author": "beachball",
|
|
85
|
-
"package": "@griffel/transform",
|
|
86
|
-
"comment": "Bump @griffel/transform-shaker to v1.0.5",
|
|
87
|
-
"commit": "d83f3c21bd7764c9396d3879c63cb087f3d37ba8"
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"date": "Thu, 30 Apr 2026 08:33:37 GMT",
|
|
94
|
-
"tag": "@griffel/transform_v3.0.3",
|
|
95
|
-
"version": "3.0.3",
|
|
96
|
-
"comments": {
|
|
97
|
-
"patch": [
|
|
98
|
-
{
|
|
99
|
-
"author": "beachball",
|
|
100
|
-
"package": "@griffel/transform",
|
|
101
|
-
"comment": "Bump @griffel/core to v1.20.3",
|
|
102
|
-
"commit": "a4d43188447b8f7738ae5a4493c76d8f399e72ca"
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"date": "Wed, 29 Apr 2026 08:41:14 GMT",
|
|
109
|
-
"tag": "@griffel/transform_v3.0.2",
|
|
110
|
-
"version": "3.0.2",
|
|
111
|
-
"comments": {
|
|
112
|
-
"none": [
|
|
113
|
-
{
|
|
114
|
-
"author": "olfedias@microsoft.com",
|
|
115
|
-
"package": "@griffel/transform",
|
|
116
|
-
"commit": "01c98b78b3f36efda818d6f81d0a1c9e5935d773",
|
|
117
|
-
"comment": "chore: fix lint issues ahead of ESLint 9 migration"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"author": "olfedias@microsoft.com",
|
|
121
|
-
"package": "@griffel/transform",
|
|
122
|
-
"commit": "e622ba1a5a32b06348274f1e2f214a60c0faab80",
|
|
123
|
-
"comment": "chore: migrate to ESLint 9 flat config"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"patch": [
|
|
127
|
-
{
|
|
128
|
-
"author": "olfedias@microsoft.com",
|
|
129
|
-
"package": "@griffel/transform",
|
|
130
|
-
"commit": "6a1e010f49bae29634fffeded78bfa0a334752de",
|
|
131
|
-
"comment": "fix: deduplicate CSS rules from resolveStyleRulesForSlots"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"author": "beachball",
|
|
135
|
-
"package": "@griffel/transform",
|
|
136
|
-
"comment": "Bump @griffel/core to v1.20.2",
|
|
137
|
-
"commit": "776d6d657e411ede5cdb6493bc70e354e78b541c"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"author": "beachball",
|
|
141
|
-
"package": "@griffel/transform",
|
|
142
|
-
"comment": "Bump @griffel/transform-shaker to v1.0.4",
|
|
143
|
-
"commit": "776d6d657e411ede5cdb6493bc70e354e78b541c"
|
|
144
|
-
}
|
|
145
|
-
]
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"date": "Wed, 08 Apr 2026 09:35:41 GMT",
|
|
150
|
-
"tag": "@griffel/transform_v3.0.1",
|
|
151
|
-
"version": "3.0.1",
|
|
152
|
-
"comments": {
|
|
153
|
-
"patch": [
|
|
154
|
-
{
|
|
155
|
-
"author": "olfedias@microsoft.com",
|
|
156
|
-
"package": "@griffel/transform",
|
|
157
|
-
"commit": "fc9f55968297f2894a8eafeaf03d9af6860f19f3",
|
|
158
|
-
"comment": "fix: parse ESM files as modules in convertESMtoCJS"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"author": "olfedias@microsoft.com",
|
|
162
|
-
"package": "@griffel/transform",
|
|
163
|
-
"commit": "9774fd0de3646b690a08ee544ca0b09363ece43b",
|
|
164
|
-
"comment": "refactor(build): switch to @nx/js:tsc executor"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"author": "beachball",
|
|
168
|
-
"package": "@griffel/transform",
|
|
169
|
-
"comment": "Bump @griffel/transform-shaker to v1.0.3",
|
|
170
|
-
"commit": "fc9f55968297f2894a8eafeaf03d9af6860f19f3"
|
|
171
|
-
}
|
|
172
|
-
]
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"date": "Mon, 23 Mar 2026 16:50:27 GMT",
|
|
177
|
-
"tag": "@griffel/transform_v3.0.0",
|
|
178
|
-
"version": "3.0.0",
|
|
179
|
-
"comments": {
|
|
180
|
-
"major": [
|
|
181
|
-
{
|
|
182
|
-
"author": "olfedias@microsoft.com",
|
|
183
|
-
"package": "@griffel/transform",
|
|
184
|
-
"commit": "6dfe649fcc0f7020e44105bee79a35729067d57f",
|
|
185
|
-
"comment": "BREAKING: rename modules to importsToTransform, add functionsToTransform option"
|
|
186
|
-
}
|
|
187
|
-
],
|
|
188
|
-
"patch": [
|
|
189
|
-
{
|
|
190
|
-
"author": "olfedias@microsoft.com",
|
|
191
|
-
"package": "@griffel/transform",
|
|
192
|
-
"commit": "81b6321139752afc633d3c8e9962b8dc156971c0",
|
|
193
|
-
"comment": "fix: reverse styleCalls iteration to match CSS rule ordering of old plugin"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"author": "olfedias@microsoft.com",
|
|
197
|
-
"package": "@griffel/transform",
|
|
198
|
-
"commit": "26382f538c445a01a0f52d93effba603d9f65cd4",
|
|
199
|
-
"comment": "fix: add zIndex fallback values in fluentTokensPlugin"
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"date": "Fri, 13 Mar 2026 17:00:44 GMT",
|
|
206
|
-
"tag": "@griffel/transform_v2.0.2",
|
|
207
|
-
"version": "2.0.2",
|
|
208
|
-
"comments": {
|
|
209
|
-
"patch": [
|
|
210
|
-
{
|
|
211
|
-
"author": "olfedias@microsoft.com",
|
|
212
|
-
"package": "@griffel/transform",
|
|
213
|
-
"commit": "e7b6200ac687fdbbbab91b4f2d747ea5c90544be",
|
|
214
|
-
"comment": "fix: wrap VM errors as host Error with filename context"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"author": "olfedias@microsoft.com",
|
|
218
|
-
"package": "@griffel/transform",
|
|
219
|
-
"commit": "65d7de25a942d7790b8d477b486f40257fdb1be4",
|
|
220
|
-
"comment": "perf: skip eval cache for __mkPreval entry-point evaluations"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"author": "olfedias@microsoft.com",
|
|
224
|
-
"package": "@griffel/transform",
|
|
225
|
-
"commit": "e0f931f2481843af7f1f86bf247bd21c38aef87f",
|
|
226
|
-
"comment": "fix: wrap VM errors as host Error with filename context, defer CJS export assignments for IIFE patterns"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"author": "beachball",
|
|
230
|
-
"package": "@griffel/transform",
|
|
231
|
-
"comment": "Bump @griffel/transform-shaker to v1.0.2",
|
|
232
|
-
"commit": "e7b6200ac687fdbbbab91b4f2d747ea5c90544be"
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
|
-
"none": [
|
|
236
|
-
{
|
|
237
|
-
"author": "olfedias@microsoft.com",
|
|
238
|
-
"package": "@griffel/transform",
|
|
239
|
-
"commit": "38eeaccf3dcc30470cefa3f29624e5e64b16dcdd",
|
|
240
|
-
"comment": "fix yarn install in beachball precommit hook"
|
|
241
|
-
}
|
|
242
|
-
]
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"date": "Wed, 11 Mar 2026 13:33:34 GMT",
|
|
247
|
-
"tag": "@griffel/transform_v2.0.0",
|
|
248
|
-
"version": "2.0.0",
|
|
249
|
-
"comments": {
|
|
250
|
-
"patch": [
|
|
251
|
-
{
|
|
252
|
-
"author": "olfedias@microsoft.com",
|
|
253
|
-
"package": "@griffel/transform",
|
|
254
|
-
"commit": "5e470e329c250e3d9e86570c763301f1349ae3a7",
|
|
255
|
-
"comment": "feat: add collectPerfIssues option to TransformOptions"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"author": "olfedias@microsoft.com",
|
|
259
|
-
"package": "@griffel/transform",
|
|
260
|
-
"commit": "f2cd5f051ab624dd58aa0b3a9b6b820176a6cdaa",
|
|
261
|
-
"comment": "fix: fix VM result index mapping in batchEvaluator"
|
|
262
|
-
}
|
|
263
|
-
],
|
|
264
|
-
"major": [
|
|
265
|
-
{
|
|
266
|
-
"author": "olfedias@microsoft.com",
|
|
267
|
-
"package": "@griffel/transform",
|
|
268
|
-
"commit": "4e637d68cf1cb9a7d1e9fb4356e27ad6fd8dc823",
|
|
269
|
-
"comment": "BREAKING: Replace @linaria/shaker with @griffel/transform-shaker. Remove babelOptions from TransformOptions. Remove StrictOptions type."
|
|
270
|
-
}
|
|
271
|
-
]
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"date": "Fri, 06 Mar 2026 15:56:28 GMT",
|
|
276
|
-
"tag": "@griffel/transform_v1.2.1",
|
|
277
|
-
"version": "1.2.1",
|
|
278
|
-
"comments": {
|
|
279
|
-
"none": [
|
|
280
|
-
{
|
|
281
|
-
"author": "olfedias@microsoft.com",
|
|
282
|
-
"package": "@griffel/transform",
|
|
283
|
-
"commit": "f422dee59ffc7ad2f4e5396def5dae5c9785cf24",
|
|
284
|
-
"comment": "chore: hoist common tsconfig strict options to base config"
|
|
285
|
-
}
|
|
286
|
-
],
|
|
287
|
-
"patch": [
|
|
288
|
-
{
|
|
289
|
-
"author": "olfedias@microsoft.com",
|
|
290
|
-
"package": "@griffel/transform",
|
|
291
|
-
"commit": "27fcc72ffecf4ae26bb286bae0622a283922d239",
|
|
292
|
-
"comment": "refactor: remove cookModuleId from module evaluation"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"author": "beachball",
|
|
296
|
-
"package": "@griffel/transform",
|
|
297
|
-
"comment": "Bump @griffel/core to v1.20.1",
|
|
298
|
-
"commit": "75914de37870943b9f2d483be421efe9cad8872f"
|
|
299
|
-
}
|
|
300
|
-
]
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"date": "Fri, 06 Mar 2026 08:17:05 GMT",
|
|
305
|
-
"tag": "@griffel/transform_v1.2.0",
|
|
306
|
-
"version": "1.2.0",
|
|
307
|
-
"comments": {
|
|
308
|
-
"patch": [
|
|
309
|
-
{
|
|
310
|
-
"author": "olfedias@microsoft.com",
|
|
311
|
-
"package": "@griffel/transform",
|
|
312
|
-
"commit": "f29bf9c1ef7592fda794b1d7911adcd7f39675ec",
|
|
313
|
-
"comment": "refactor: use ScopeTracker from oxc-walker for scope-aware import resolution"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"author": "olfedias@microsoft.com",
|
|
317
|
-
"package": "@griffel/transform",
|
|
318
|
-
"commit": "8899f13b7545a0a64c7ee0f48bdd84d962095e0b",
|
|
319
|
-
"comment": "refactor: extract dedupeCSSRules result to a variable in transformSync"
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
"author": "olfedias@microsoft.com",
|
|
323
|
-
"package": "@griffel/transform",
|
|
324
|
-
"commit": "fbc4ec36aef084fb54a6fcadb838b43e2cf3025b",
|
|
325
|
-
"comment": "refactor: internalize Linaria Module/EvalCache to remove @linaria/babel-preset dependency"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"author": "olfedias@microsoft.com",
|
|
329
|
-
"package": "@griffel/transform",
|
|
330
|
-
"commit": "92e3be23310caca39d666dd52b91e00559126a4b",
|
|
331
|
-
"comment": "perf: replace DeoptError with DEOPT sentinel symbol, optimize CSS rule dedup and lookups"
|
|
332
|
-
}
|
|
333
|
-
],
|
|
334
|
-
"minor": [
|
|
335
|
-
{
|
|
336
|
-
"author": "olfedias@microsoft.com",
|
|
337
|
-
"package": "@griffel/transform",
|
|
338
|
-
"commit": "ae00bdd2d1160d35abd24b37f3d6ac3dc68f45cd",
|
|
339
|
-
"comment": "feat: add AST evaluator plugin system with evaluationPlugins option"
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
"author": "olfedias@microsoft.com",
|
|
343
|
-
"package": "@griffel/transform",
|
|
344
|
-
"commit": "aaf1e0d5158f3926da15aa56c7cabdc1f90ae11e",
|
|
345
|
-
"comment": "feat: wrap imported asset paths in <griffel-asset> tags for reliable CSS extraction"
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"author": "olfedias@microsoft.com",
|
|
349
|
-
"package": "@griffel/transform",
|
|
350
|
-
"commit": "3ad6da3c7aa4bee5f34caf656bd01136c6851afb",
|
|
351
|
-
"comment": "feat: add makeStaticStyles AOT/CSS extraction support"
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
"author": "olfedias@microsoft.com",
|
|
355
|
-
"package": "@griffel/transform",
|
|
356
|
-
"commit": "4ae3632b39f4feedaf66b6258f8ddc1ca9e1ad44",
|
|
357
|
-
"comment": "feat: hybrid evaluator that shakes ESM node_modules instead of ignoring them"
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
"author": "olfedias@microsoft.com",
|
|
361
|
-
"package": "@griffel/transform",
|
|
362
|
-
"commit": "faee841c0dc969828253b06961ca6702bdbfe5ae",
|
|
363
|
-
"comment": "feat: throw on non-ESM input in transformSync"
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
"author": "beachball",
|
|
367
|
-
"package": "@griffel/transform",
|
|
368
|
-
"comment": "Bump @griffel/core to v1.20.0",
|
|
369
|
-
"commit": "832ca3b88650bb8fa8b20499ade2e679518bc934"
|
|
370
|
-
}
|
|
371
|
-
]
|
|
372
|
-
}
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
"date": "Mon, 03 Nov 2025 15:43:56 GMT",
|
|
376
|
-
"tag": "@griffel/transform_v1.1.0",
|
|
377
|
-
"version": "1.1.0",
|
|
378
|
-
"comments": {
|
|
379
|
-
"none": [
|
|
380
|
-
{
|
|
381
|
-
"author": "198982749+Copilot@users.noreply.github.com",
|
|
382
|
-
"package": "@griffel/transform",
|
|
383
|
-
"commit": "fde1736c87adc10627cb0e93f191f8d39cbf9b85",
|
|
384
|
-
"comment": "Add fixtures and fixture-based tests to @griffel/transform from feat/new-plugin branch"
|
|
385
|
-
}
|
|
386
|
-
],
|
|
387
|
-
"minor": [
|
|
388
|
-
{
|
|
389
|
-
"author": "copilot@github.com",
|
|
390
|
-
"package": "@griffel/transform",
|
|
391
|
-
"commit": "4c1805eae95b64b3194f79e0f786529a15ee34bd",
|
|
392
|
-
"comment": "Add initial @griffel/transform package boilerplate"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
"author": "copilot@github.com",
|
|
396
|
-
"package": "@griffel/transform",
|
|
397
|
-
"commit": "8de4a3c9a281c053ef0978b6506c666f57457c12",
|
|
398
|
-
"comment": "feat: add functionality"
|
|
399
|
-
}
|
|
400
|
-
]
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
]
|
|
404
|
-
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
# Change Log - @griffel/transform
|
|
2
|
-
|
|
3
|
-
<!-- This log was last generated on Thu, 21 May 2026 08:10:29 GMT and should not be manually modified. -->
|
|
4
|
-
|
|
5
|
-
<!-- Start content -->
|
|
6
|
-
|
|
7
|
-
## 3.0.5
|
|
8
|
-
|
|
9
|
-
Thu, 21 May 2026 08:10:29 GMT
|
|
10
|
-
|
|
11
|
-
### Patches
|
|
12
|
-
|
|
13
|
-
- chore(deps): bump oxc-parser (49699333+dependabot[bot]@users.noreply.github.com)
|
|
14
|
-
- chore(deps): bump oxc-parser and oxc-transform (49699333+dependabot[bot]@users.noreply.github.com)
|
|
15
|
-
- chore(deps): bump oxc-parser (49699333+dependabot[bot]@users.noreply.github.com)
|
|
16
|
-
- Bump @griffel/core to v1.21.1
|
|
17
|
-
- Bump @griffel/transform-shaker to v1.0.6
|
|
18
|
-
|
|
19
|
-
## 3.0.4
|
|
20
|
-
|
|
21
|
-
Mon, 04 May 2026 12:34:39 GMT
|
|
22
|
-
|
|
23
|
-
### Patches
|
|
24
|
-
|
|
25
|
-
- chore(deps): bump oxc-parser (49699333+dependabot[bot]@users.noreply.github.com)
|
|
26
|
-
- Bump @griffel/core to v1.21.0
|
|
27
|
-
- Bump @griffel/transform-shaker to v1.0.5
|
|
28
|
-
|
|
29
|
-
## 3.0.3
|
|
30
|
-
|
|
31
|
-
Thu, 30 Apr 2026 08:33:37 GMT
|
|
32
|
-
|
|
33
|
-
### Patches
|
|
34
|
-
|
|
35
|
-
- Bump @griffel/core to v1.20.3
|
|
36
|
-
|
|
37
|
-
## 3.0.2
|
|
38
|
-
|
|
39
|
-
Wed, 29 Apr 2026 08:41:14 GMT
|
|
40
|
-
|
|
41
|
-
### Patches
|
|
42
|
-
|
|
43
|
-
- fix: deduplicate CSS rules from resolveStyleRulesForSlots (olfedias@microsoft.com)
|
|
44
|
-
- Bump @griffel/core to v1.20.2
|
|
45
|
-
- Bump @griffel/transform-shaker to v1.0.4
|
|
46
|
-
|
|
47
|
-
## 3.0.1
|
|
48
|
-
|
|
49
|
-
Wed, 08 Apr 2026 09:35:41 GMT
|
|
50
|
-
|
|
51
|
-
### Patches
|
|
52
|
-
|
|
53
|
-
- fix: parse ESM files as modules in convertESMtoCJS (olfedias@microsoft.com)
|
|
54
|
-
- refactor(build): switch to @nx/js:tsc executor (olfedias@microsoft.com)
|
|
55
|
-
- Bump @griffel/transform-shaker to v1.0.3
|
|
56
|
-
|
|
57
|
-
## 3.0.0
|
|
58
|
-
|
|
59
|
-
Mon, 23 Mar 2026 16:50:27 GMT
|
|
60
|
-
|
|
61
|
-
### Major changes
|
|
62
|
-
|
|
63
|
-
- BREAKING: rename modules to importsToTransform, add functionsToTransform option (olfedias@microsoft.com)
|
|
64
|
-
|
|
65
|
-
### Patches
|
|
66
|
-
|
|
67
|
-
- fix: reverse styleCalls iteration to match CSS rule ordering of old plugin (olfedias@microsoft.com)
|
|
68
|
-
- fix: add zIndex fallback values in fluentTokensPlugin (olfedias@microsoft.com)
|
|
69
|
-
|
|
70
|
-
## 2.0.2
|
|
71
|
-
|
|
72
|
-
Fri, 13 Mar 2026 17:00:44 GMT
|
|
73
|
-
|
|
74
|
-
### Patches
|
|
75
|
-
|
|
76
|
-
- fix: wrap VM errors as host Error with filename context (olfedias@microsoft.com)
|
|
77
|
-
- perf: skip eval cache for __mkPreval entry-point evaluations (olfedias@microsoft.com)
|
|
78
|
-
- fix: wrap VM errors as host Error with filename context, defer CJS export assignments for IIFE patterns (olfedias@microsoft.com)
|
|
79
|
-
- Bump @griffel/transform-shaker to v1.0.2
|
|
80
|
-
|
|
81
|
-
## 2.0.0
|
|
82
|
-
|
|
83
|
-
Wed, 11 Mar 2026 13:33:34 GMT
|
|
84
|
-
|
|
85
|
-
### Major changes
|
|
86
|
-
|
|
87
|
-
- BREAKING: Replace @linaria/shaker with @griffel/transform-shaker. Remove babelOptions from TransformOptions. Remove StrictOptions type. (olfedias@microsoft.com)
|
|
88
|
-
|
|
89
|
-
### Patches
|
|
90
|
-
|
|
91
|
-
- feat: add collectPerfIssues option to TransformOptions (olfedias@microsoft.com)
|
|
92
|
-
- fix: fix VM result index mapping in batchEvaluator (olfedias@microsoft.com)
|
|
93
|
-
|
|
94
|
-
## 1.2.1
|
|
95
|
-
|
|
96
|
-
Fri, 06 Mar 2026 15:56:28 GMT
|
|
97
|
-
|
|
98
|
-
### Patches
|
|
99
|
-
|
|
100
|
-
- refactor: remove cookModuleId from module evaluation (olfedias@microsoft.com)
|
|
101
|
-
- Bump @griffel/core to v1.20.1
|
|
102
|
-
|
|
103
|
-
## 1.2.0
|
|
104
|
-
|
|
105
|
-
Fri, 06 Mar 2026 08:17:05 GMT
|
|
106
|
-
|
|
107
|
-
### Minor changes
|
|
108
|
-
|
|
109
|
-
- feat: add AST evaluator plugin system with evaluationPlugins option (olfedias@microsoft.com)
|
|
110
|
-
- feat: wrap imported asset paths in <griffel-asset> tags for reliable CSS extraction (olfedias@microsoft.com)
|
|
111
|
-
- feat: add makeStaticStyles AOT/CSS extraction support (olfedias@microsoft.com)
|
|
112
|
-
- feat: hybrid evaluator that shakes ESM node_modules instead of ignoring them (olfedias@microsoft.com)
|
|
113
|
-
- feat: throw on non-ESM input in transformSync (olfedias@microsoft.com)
|
|
114
|
-
- Bump @griffel/core to v1.20.0
|
|
115
|
-
|
|
116
|
-
### Patches
|
|
117
|
-
|
|
118
|
-
- refactor: use ScopeTracker from oxc-walker for scope-aware import resolution (olfedias@microsoft.com)
|
|
119
|
-
- refactor: extract dedupeCSSRules result to a variable in transformSync (olfedias@microsoft.com)
|
|
120
|
-
- refactor: internalize Linaria Module/EvalCache to remove @linaria/babel-preset dependency (olfedias@microsoft.com)
|
|
121
|
-
- perf: replace DeoptError with DEOPT sentinel symbol, optimize CSS rule dedup and lookups (olfedias@microsoft.com)
|
|
122
|
-
|
|
123
|
-
## 1.1.0
|
|
124
|
-
|
|
125
|
-
Mon, 03 Nov 2025 15:43:56 GMT
|
|
126
|
-
|
|
127
|
-
### Minor changes
|
|
128
|
-
|
|
129
|
-
- Add initial @griffel/transform package boilerplate (copilot@github.com)
|
|
130
|
-
- feat: add functionality (copilot@github.com)
|
|
Binary file
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { makeStyles } from '@griffel/react';
|
|
2
|
-
|
|
3
|
-
import blank from './blank.jpg';
|
|
4
|
-
import blankDuplicate from './blank.jpg';
|
|
5
|
-
import empty from './empty.jpg';
|
|
6
|
-
|
|
7
|
-
export const useStyles = makeStyles({
|
|
8
|
-
rootA: { backgroundImage: `url(${blank})` },
|
|
9
|
-
rootB: { backgroundImage: `url("${blankDuplicate}")` },
|
|
10
|
-
rootC: { backgroundImage: `url(${empty})` },
|
|
11
|
-
assetWithHash: { filter: 'url(./a.svg#a)' },
|
|
12
|
-
});
|
|
Binary file
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"usedProcessing": true,
|
|
3
|
-
"usedVMForEvaluation": true,
|
|
4
|
-
"cssRulesByBucket": {
|
|
5
|
-
"d": [
|
|
6
|
-
".f___0{background-image:url(<griffel-asset>blank.jpg</griffel-asset>);}",
|
|
7
|
-
".f___1{background-image:url(\"<griffel-asset>blank.jpg</griffel-asset>\");}",
|
|
8
|
-
".f___2{background-image:url(<griffel-asset>empty.jpg</griffel-asset>);}",
|
|
9
|
-
".f___3{filter:url(./a.svg#a);}"
|
|
10
|
-
]
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __css } from '@griffel/react';
|
|
2
|
-
|
|
3
|
-
import blank from './blank.jpg';
|
|
4
|
-
import blankDuplicate from './blank.jpg';
|
|
5
|
-
import empty from './empty.jpg';
|
|
6
|
-
|
|
7
|
-
export const useStyles = __css({
|
|
8
|
-
rootA: { Bcmaq0h: 'f___0' },
|
|
9
|
-
rootB: { Bcmaq0h: 'f___1' },
|
|
10
|
-
rootC: { Bcmaq0h: 'f___2' },
|
|
11
|
-
assetWithHash: { Bhu2qc9: 'f___3' },
|
|
12
|
-
});
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { makeResetStyles } from '@griffel/react';
|
|
2
|
-
|
|
3
|
-
import blank from './blank.jpg';
|
|
4
|
-
import blankDuplicate from './blank.jpg';
|
|
5
|
-
import empty from './empty.jpg';
|
|
6
|
-
|
|
7
|
-
export const useStyles = makeResetStyles({
|
|
8
|
-
backgroundImage: `url(${blank})`,
|
|
9
|
-
':hover': { backgroundImage: `url(${blankDuplicate})` },
|
|
10
|
-
':focus': { backgroundImage: `url(${empty})` },
|
|
11
|
-
});
|
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"usedProcessing": true,
|
|
3
|
-
"usedVMForEvaluation": true,
|
|
4
|
-
"cssRulesByBucket": {
|
|
5
|
-
"r": [
|
|
6
|
-
".r___0{background-image:url(<griffel-asset>blank.jpg</griffel-asset>);}",
|
|
7
|
-
".r___0:hover{background-image:url(<griffel-asset>blank.jpg</griffel-asset>);}",
|
|
8
|
-
".r___0:focus{background-image:url(<griffel-asset>empty.jpg</griffel-asset>);}"
|
|
9
|
-
]
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { makeStyles } from '@griffel/react';
|
|
2
|
-
|
|
3
|
-
export const useStyles = makeStyles({
|
|
4
|
-
httpUrl: { backgroundImage: 'url(http://www.example.com)' },
|
|
5
|
-
httpsUrl: { backgroundImage: 'url(https://www.example.com)' },
|
|
6
|
-
httpsUrlWithQuotes: { backgroundImage: 'url("https://www.example.com")' },
|
|
7
|
-
dataUrl: { backgroundImage: 'url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)' },
|
|
8
|
-
dataUrlQuotes: {
|
|
9
|
-
backgroundImage:
|
|
10
|
-
'url(\'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" height="32" aria-hidden="true" viewBox="0 0 16 16" width="32" data-view-component="true" class="octicon octicon-mark-github v-align-middle"%3E%3Cpath fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"%3E%3C/path%3E%3C/svg%3E\')',
|
|
11
|
-
},
|
|
12
|
-
hashOnly: { filter: 'url(#a)' },
|
|
13
|
-
});
|