@stylable/build-tools
Advanced tools
Comparing version 5.2.1 to 5.3.0-rc.1
@@ -8,3 +8,3 @@ export interface CalcDepthContext<T> { | ||
export declare function calcDepth<T>(module: T, context: CalcDepthContext<T>, path?: T[], cache?: Map<T, number>): number; | ||
export declare function getCSSViewModule<T>(module: T, context: CalcDepthContext<T>): T | undefined; | ||
export declare function getCSSViewModule<T>(module: T, context: CalcDepthContext<T>, force?: boolean): T | undefined; | ||
//# sourceMappingURL=calc-depth.d.ts.map |
@@ -29,4 +29,4 @@ "use strict"; | ||
exports.calcDepth = calcDepth; | ||
function getCSSViewModule(module, context) { | ||
if (context.isStylableModule(module)) { | ||
function getCSSViewModule(module, context, force = false) { | ||
if (context.isStylableModule(module) || force) { | ||
const parentViewsList = []; | ||
@@ -37,3 +37,4 @@ const viewPath = context.getModulePathNoExt(module); | ||
context.getModulePathNoExt(importer) === viewPath) { | ||
parentViewsList.push(importer); | ||
const redirectedView = getCSSViewModule(importer, context, true); | ||
parentViewsList.push(redirectedView || importer); | ||
} | ||
@@ -40,0 +41,0 @@ } |
{ | ||
"name": "@stylable/build-tools", | ||
"version": "5.2.1", | ||
"version": "5.3.0-rc.1", | ||
"description": "Collection of helper functions for Stylable based tooling.", | ||
@@ -10,3 +10,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@stylable/core": "^5.2.1", | ||
"@stylable/core": "5.3.0-rc.1", | ||
"find-config": "^1.0.0" | ||
@@ -13,0 +13,0 @@ }, |
@@ -45,4 +45,4 @@ export interface CalcDepthContext<T> { | ||
export function getCSSViewModule<T>(module: T, context: CalcDepthContext<T>) { | ||
if (context.isStylableModule(module)) { | ||
export function getCSSViewModule<T>(module: T, context: CalcDepthContext<T>, force = false) { | ||
if (context.isStylableModule(module) || force) { | ||
const parentViewsList: T[] = []; | ||
@@ -55,3 +55,4 @@ const viewPath = context.getModulePathNoExt(module); | ||
) { | ||
parentViewsList.push(importer); | ||
const redirectedView = getCSSViewModule(importer, context, true); | ||
parentViewsList.push(redirectedView || importer); | ||
} | ||
@@ -58,0 +59,0 @@ } |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
26269
390
2
+ Added@stylable/core@5.3.0-rc.1(transitive)
+ Added@tokey/imports-parser@0.1.2(transitive)
+ Addeddeindent@0.1.0(transitive)
- Removed@stylable/core@5.19.0(transitive)
- Removed@tokey/css-value-parser@0.1.4(transitive)
- Removed@tokey/imports-parser@1.0.0(transitive)
Updated@stylable/core@5.3.0-rc.1