postcss-styled-syntax
Advanced tools
Comparing version 0.3.3 to 0.4.0
@@ -102,4 +102,2 @@ let postcss = require('postcss'); | ||
} | ||
parsedNode.raws.styledSyntaxIsComponent = true; | ||
} | ||
@@ -106,0 +104,0 @@ |
@@ -36,3 +36,9 @@ // @ts-nocheck | ||
if (!options.isComponent) { | ||
// Add a flag to enable PostCSS and Stylelint to adjust to CSS-in-JS quirks | ||
// E. g. if something processes only rules, it could also process `root` if this flag is present | ||
this.root.raws.isRuleLike = true; | ||
if (options.isComponent) { | ||
this.root.raws.styledSyntaxIsComponent = true; | ||
} else { | ||
this.root.raws.styledOriginalContent = options.raws.originalContent; | ||
@@ -39,0 +45,0 @@ } |
{ | ||
"name": "postcss-styled-syntax", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "PostCSS syntax for template literals CSS-in-JS (e. g. styled-components).", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35259
1011