Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Commit 1419d23

Browse files
committed
Disable looking inside style tags
1 parent f13c363 commit 1419d23

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

extract.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,11 @@ function literalParser(source, opts, styles) {
306306
setSpecifier(specifier.local, nameSpace);
307307
});
308308
},
309-
JSXAttribute: (path) => {
310-
if (/^(?:css|style)$/.test(path.node.name.name)) {
311-
addObjectJob(path.get('value.expression'));
312-
}
313-
},
309+
// JSXAttribute: (path) => {
310+
// if (/^(?:css|style)$/.test(path.node.name.name)) {
311+
// addObjectJob(path.get('value.expression'));
312+
// }
313+
// },
314314
VariableDeclarator: (path) => {
315315
variableDeclarator.set(path.node.id, path.node.init ? [path.get('init')] : []);
316316
},

0 commit comments

Comments
 (0)