babel-plugin-estrela
Advanced tools
Comparing version 0.10.1 to 0.10.2
@@ -5,3 +5,3 @@ { | ||
"author": "Eduardo Rosostolato", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"license": "MIT", | ||
@@ -29,3 +29,3 @@ "main": "dist/index.js", | ||
"postcss-nested": "^5.0.6", | ||
"postcss-prefix-selector": "^1.15.0" | ||
"postcss-selector-parser": "^6.0.10" | ||
}, | ||
@@ -37,3 +37,2 @@ "devDependencies": { | ||
"@types/babel__helper-plugin-utils": "^7.10.0", | ||
"@types/postcss-prefix-selector": "^1.15.0", | ||
"esbuild": "^0.14.43", | ||
@@ -40,0 +39,0 @@ "esbuild-config": "^0.2.0", |
@@ -6,3 +6,3 @@ import { NodePath } from '@babel/core'; | ||
import postcssNested from 'postcss-nested'; | ||
import postcssPrefixer from 'postcss-prefix-selector'; | ||
import cssParserPlugin from '../shared/css-parser-plugin'; | ||
@@ -37,9 +37,5 @@ export function transformStyles(path: NodePath<t.TaggedTemplateExpression>) { | ||
function processCss(css: string, hostId: string) { | ||
return postcss([ | ||
autoprefixer(), | ||
postcssNested(), | ||
postcssPrefixer({ | ||
transform: (_, selector) => `${selector}[_${hostId}]`, | ||
}) as any, | ||
]).process(css).css; | ||
const firstPass = postcss([autoprefixer(), postcssNested()]).process(css).css; | ||
return postcss([cssParserPlugin({ id: `_${hostId}` })]).process(firstPass) | ||
.css; | ||
} |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
190891
7
24
5290
1
- Removedpostcss-prefix-selector@^1.15.0
- Removedpostcss-prefix-selector@1.16.1(transitive)