@plumeria/compiler 1.0.4 → 2.0.1
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/extract.js +12 -12
- package/package.json +1 -1
package/dist/extract.js
CHANGED
|
@@ -472,8 +472,8 @@ async function extractVueAndSvelte(filePath) {
|
|
|
472
472
|
const cssCreateSection = await extractCssMethod(ast, 'create', code);
|
|
473
473
|
const cssKeyframesSection = await extractCssMethod(ast, 'keyframes', code);
|
|
474
474
|
const cssViewTransitionSection = await extractCssMethod(ast, 'viewTransition', code);
|
|
475
|
-
const
|
|
476
|
-
const
|
|
475
|
+
const cssCreateStaticSection = await extractCssMethod(ast, 'createStatic', code);
|
|
476
|
+
const cssCreateThemeSection = await extractCssMethod(ast, 'createTheme', code);
|
|
477
477
|
let finalCode = '';
|
|
478
478
|
if (importSection)
|
|
479
479
|
finalCode += importSection + '\n';
|
|
@@ -483,10 +483,10 @@ async function extractVueAndSvelte(filePath) {
|
|
|
483
483
|
finalCode += cssKeyframesSection + '\n';
|
|
484
484
|
if (cssViewTransitionSection)
|
|
485
485
|
finalCode += cssViewTransitionSection + '\n';
|
|
486
|
-
if (
|
|
487
|
-
finalCode +=
|
|
488
|
-
if (
|
|
489
|
-
finalCode +=
|
|
486
|
+
if (cssCreateStaticSection)
|
|
487
|
+
finalCode += cssCreateStaticSection + '\n';
|
|
488
|
+
if (cssCreateThemeSection)
|
|
489
|
+
finalCode += cssCreateThemeSection + '\n';
|
|
490
490
|
if (cssCreateSection)
|
|
491
491
|
finalCode += cssCreateSection + '\n';
|
|
492
492
|
if (calls)
|
|
@@ -506,8 +506,8 @@ async function extractTSFile(filePath) {
|
|
|
506
506
|
const cssCreateSection = await extractCssMethod(ast, 'create', code);
|
|
507
507
|
const cssKeyframesSection = await extractCssMethod(ast, 'keyframes', code);
|
|
508
508
|
const cssViewTransitionSection = await extractCssMethod(ast, 'viewTransition', code);
|
|
509
|
-
const
|
|
510
|
-
const
|
|
509
|
+
const cssCreateStaticSection = await extractCssMethod(ast, 'createStatic', code);
|
|
510
|
+
const cssCreateThemeSection = await extractCssMethod(ast, 'createTheme', code);
|
|
511
511
|
const propsMatches = await extractCssProps(ast, code, createdStylesMap);
|
|
512
512
|
const calls = propsMatches
|
|
513
513
|
.filter(Boolean)
|
|
@@ -522,10 +522,10 @@ async function extractTSFile(filePath) {
|
|
|
522
522
|
finalCode += cssKeyframesSection + '\n';
|
|
523
523
|
if (cssViewTransitionSection)
|
|
524
524
|
finalCode += cssViewTransitionSection + '\n';
|
|
525
|
-
if (
|
|
526
|
-
finalCode +=
|
|
527
|
-
if (
|
|
528
|
-
finalCode +=
|
|
525
|
+
if (cssCreateStaticSection)
|
|
526
|
+
finalCode += cssCreateStaticSection + '\n';
|
|
527
|
+
if (cssCreateThemeSection)
|
|
528
|
+
finalCode += cssCreateThemeSection + '\n';
|
|
529
529
|
if (cssCreateSection)
|
|
530
530
|
finalCode += cssCreateSection + '\n';
|
|
531
531
|
finalCode += calls;
|