Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-estrela

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-estrela - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

dist/shared/css-parser-plugin.d.ts

5

package.json

@@ -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",

12

src/transforms/styles.transform.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc