@stylable/build-tools
Advanced tools
Comparing version 5.0.0-rc.4 to 5.0.0-rc.5
@@ -5,6 +5,10 @@ "use strict"; | ||
function hasImportedSideEffects(stylable, meta, imported) { | ||
//keyframes | ||
if (Object.keys(imported.keyframes).length) { | ||
// direct import usage | ||
const { keyframes, layer } = imported.typed; | ||
if (keyframes && Object.keys(keyframes).length) { | ||
return true; | ||
} | ||
if (layer && Object.keys(layer).length) { | ||
return true; | ||
} | ||
//compose usage | ||
@@ -11,0 +15,0 @@ for (const localSymbol of Object.values(meta.getAllClasses())) { |
{ | ||
"name": "@stylable/build-tools", | ||
"version": "5.0.0-rc.4", | ||
"version": "5.0.0-rc.5", | ||
"description": "Collection of helper functions for Stylable based tooling.", | ||
@@ -10,3 +10,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@stylable/core": "5.0.0-rc.4", | ||
"@stylable/core": "5.0.0-rc.5", | ||
"find-config": "^1.0.0" | ||
@@ -13,0 +13,0 @@ }, |
import type { Imported, Stylable, StylableMeta } from '@stylable/core'; | ||
export function hasImportedSideEffects(stylable: Stylable, meta: StylableMeta, imported: Imported) { | ||
//keyframes | ||
if (Object.keys(imported.keyframes).length) { | ||
// direct import usage | ||
const { keyframes, layer } = imported.typed; | ||
if (keyframes && Object.keys(keyframes).length) { | ||
return true; | ||
} | ||
if (layer && Object.keys(layer).length) { | ||
return true; | ||
} | ||
@@ -9,0 +13,0 @@ //compose usage |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
25880
388
+ Added@stylable/core@5.0.0-rc.5(transitive)
- Removed@stylable/core@5.0.0-rc.4(transitive)
Updated@stylable/core@5.0.0-rc.5