@plumeria/compiler 6.3.2 → 7.0.0
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/dist/index.js +3 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -195,8 +195,8 @@ function compileCSS(options) {
|
|
|
195
195
|
const obj = (0, utils_1.objectExpressionToObject)(node.init.arguments[0].expression, mergedStaticTable, mergedKeyframesTable, mergedViewTransitionTable, mergedCreateThemeHashTable, scannedTables.createThemeObjectTable, mergedCreateTable, mergedCreateStaticHashTable, scannedTables.createStaticObjectTable, mergedVariantsTable, resolveVariable);
|
|
196
196
|
if (obj) {
|
|
197
197
|
localCreateStyles[node.id.value] = { type: 'create', obj };
|
|
198
|
-
Object.entries(obj).forEach(([
|
|
199
|
-
const records = (0, utils_1.getStyleRecords)(
|
|
198
|
+
Object.entries(obj).forEach(([_key, style]) => {
|
|
199
|
+
const records = (0, utils_1.getStyleRecords)(style);
|
|
200
200
|
(0, utils_1.extractOndemandStyles)(style, extractedSheets, scannedTables);
|
|
201
201
|
records.forEach((r) => {
|
|
202
202
|
extractedSheets.push(r.sheet);
|
|
@@ -309,8 +309,7 @@ function compileCSS(options) {
|
|
|
309
309
|
};
|
|
310
310
|
const processStyle = (style) => {
|
|
311
311
|
(0, utils_1.extractOndemandStyles)(style, extractedSheets, scannedTables);
|
|
312
|
-
const
|
|
313
|
-
const records = (0, utils_1.getStyleRecords)(hash, style);
|
|
312
|
+
const records = (0, utils_1.getStyleRecords)(style);
|
|
314
313
|
records.forEach((r) => extractedSheets.push(r.sheet));
|
|
315
314
|
};
|
|
316
315
|
if (propName === 'props') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/compiler",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Plumeria swc based compiler for statically extracting css",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"dist/"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@plumeria/utils": "^
|
|
24
|
+
"@plumeria/utils": "^7.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@swc/core": "1.15.8",
|
|
28
|
-
"zss-engine": "2.2.
|
|
28
|
+
"zss-engine": "2.2.3"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public",
|