Skip to content

Commit 61bed99

Browse files
committed
feat: declare version * 4
1 parent 1166bd8 commit 61bed99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/version.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ if (!window.CubeUIKit || !Array.isArray(window.CubeUIKit)) {
1111
};
1212
}
1313

14-
window.CubeUIKit.version.push(process.env.VERSION as string);
14+
if (typeof process !== 'undefined' && process.env?.VERSION) {
15+
window.CubeUIKit.version.push(process.env.VERSION as string);
16+
}
1517

1618
if (window.CubeUIKit.version.length > 1) {
1719
console.error('More than one version of CubeUIKit is loaded');

0 commit comments

Comments
 (0)