@plumeria/compiler 18.0.0 → 18.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/index.js +7 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -838,11 +838,14 @@ function compileCSS(options) {
|
|
|
838
838
|
processCall(path.node);
|
|
839
839
|
},
|
|
840
840
|
JSXOpeningElement({ node }) {
|
|
841
|
-
if (node.name.type
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
841
|
+
if (node.name.type === 'Identifier') {
|
|
842
|
+
const tagName = node.name.value;
|
|
843
|
+
if (tagName[0] !== tagName[0].toUpperCase())
|
|
844
|
+
return;
|
|
845
|
+
}
|
|
846
|
+
else if (node.name.type !== 'JSXMemberExpression') {
|
|
845
847
|
return;
|
|
848
|
+
}
|
|
846
849
|
node.attributes.forEach((attr) => {
|
|
847
850
|
if (attr.type !== 'JSXAttribute')
|
|
848
851
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/compiler",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.1",
|
|
4
4
|
"description": "Plumeria swc based compiler for statically extracting css",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dist/"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@plumeria/utils": "^18.0.
|
|
24
|
+
"@plumeria/utils": "^18.0.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@rust-gear/glob": "1.1.0",
|