@stylable/core
Advanced tools
Comparing version 4.0.0-alpha.2 to 4.0.0-alpha.3
@@ -29,3 +29,2 @@ import * as postcss from 'postcss'; | ||
mixins: RefedMixin[]; | ||
hasOwnGlobalSideEffects: boolean; | ||
outputAst?: postcss.Root; | ||
@@ -32,0 +31,0 @@ globals: Record<string, boolean>; |
@@ -40,3 +40,2 @@ "use strict"; | ||
this.transformedScopes = null; | ||
this.hasOwnGlobalSideEffects = false; | ||
} | ||
@@ -43,0 +42,0 @@ } |
@@ -349,3 +349,2 @@ "use strict"; | ||
if (this.checkForScopedNodeAfter(rule, _nodes, _index) === false) { | ||
this.meta.hasOwnGlobalSideEffects = true; | ||
this.diagnostics.warn(rule, exports.processorWarnings.UNSCOPED_CLASS(name), { | ||
@@ -365,3 +364,2 @@ word: name, | ||
if (this.checkForScopedNodeAfter(rule, _nodes, _index) === false) { | ||
this.meta.hasOwnGlobalSideEffects = true; | ||
this.diagnostics.warn(rule, exports.processorWarnings.UNSCOPED_ELEMENT(name), { | ||
@@ -377,7 +375,2 @@ word: name, | ||
else if (type === 'nested-pseudo-class' && name === 'global') { | ||
if (locallyScoped === false && | ||
!inStScope && | ||
this.checkForScopedNodeAfter(rule, _nodes, _index) === false) { | ||
this.meta.hasOwnGlobalSideEffects = true; | ||
} | ||
return true; | ||
@@ -384,0 +377,0 @@ } |
{ | ||
"name": "@stylable/core", | ||
"version": "4.0.0-alpha.2", | ||
"version": "4.0.0-alpha.3", | ||
"description": "CSS for Components", | ||
@@ -35,4 +35,3 @@ "main": "./cjs/index.js", | ||
"test-utils.js", | ||
"test-utils.d.ts", | ||
"webpack5.d.ts" | ||
"test-utils.d.ts" | ||
], | ||
@@ -49,3 +48,3 @@ "engines": { | ||
"license": "BSD-3-Clause", | ||
"gitHead": "6fa688fa9a7f9cc3f04acfb32f0a55cae7a5c085" | ||
"gitHead": "fe0e58c1118b9ee5600cf8235e084daae8ebd8be" | ||
} |
@@ -29,3 +29,2 @@ import * as postcss from 'postcss'; | ||
public mixins: RefedMixin[]; | ||
public hasOwnGlobalSideEffects: boolean; | ||
// Generated during transform | ||
@@ -64,3 +63,2 @@ public outputAst?: postcss.Root; | ||
this.transformedScopes = null; | ||
this.hasOwnGlobalSideEffects = false; | ||
} | ||
@@ -67,0 +65,0 @@ } |
@@ -399,3 +399,2 @@ import hash from 'murmurhash'; | ||
if (this.checkForScopedNodeAfter(rule, _nodes, _index) === false) { | ||
this.meta.hasOwnGlobalSideEffects = true; | ||
this.diagnostics.warn(rule, processorWarnings.UNSCOPED_CLASS(name), { | ||
@@ -414,3 +413,2 @@ word: name, | ||
if (this.checkForScopedNodeAfter(rule, _nodes, _index) === false) { | ||
this.meta.hasOwnGlobalSideEffects = true; | ||
this.diagnostics.warn(rule, processorWarnings.UNSCOPED_ELEMENT(name), { | ||
@@ -424,9 +422,2 @@ word: name, | ||
} else if (type === 'nested-pseudo-class' && name === 'global') { | ||
if ( | ||
locallyScoped === false && | ||
!inStScope && | ||
this.checkForScopedNodeAfter(rule, _nodes, _index) === false | ||
) { | ||
this.meta.hasOwnGlobalSideEffects = true; | ||
} | ||
return true; | ||
@@ -433,0 +424,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
735927
12495