Skip to content

Commit 0aacde2

Browse files
committed
fix: remove deep import of @nativescript/core
1 parent d2b629a commit 0aacde2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/angular/src/lib/view-util.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ import { NamespaceFilter } from './property-filter';
55

66
import { NativeScriptDebug } from './trace';
77
import { NgLayoutBase } from './views/view-types';
8-
import { isCssVariable } from '@nativescript/core/ui/core/properties';
8+
9+
// Note: this utility exists from deep core import however results in
10+
// Module not found: Error: Can't resolve '@nativescript/core/ui/core/properties'
11+
function isCssVariable(property: string) {
12+
return /^--[^,\s]+?$/.test(property);
13+
}
914

1015
const ELEMENT_NODE_TYPE = 1;
1116
const XML_ATTRIBUTES = Object.freeze(['style', 'rows', 'columns', 'fontAttributes']);

0 commit comments

Comments
 (0)