Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/core/src/core/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ let geomanVersion: GeomanVersion | null;
try {
geomanVersion = __GEOMAN_VERSION__;
} catch {
geomanVersion = (process.env.VITE_GEOMAN_VERSION as GeomanVersion) || null;
geomanVersion =
(typeof process !== 'undefined' && (process.env.VITE_GEOMAN_VERSION as GeomanVersion)) || null;
}

export const GM_PREFIX = 'gm' as const;
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/core/options/layers/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { getSecondaryControlMarkerStyles } from '@/core/options/layers/shapes/se
import { getSnapGuideStyles } from '@/core/options/layers/shapes/snap-guides.ts';
import { getTextMarkerStyles } from '@/core/options/layers/shapes/text-marker.ts';
import { sourceStyles } from '@/core/options/layers/variables.ts';
import { type FeatureShape, type LayerStyle, SOURCES } from '@/main.ts';
import { type LayerStyle } from '@/types/map/layers.ts';
import { SOURCES } from '@/core/features/constants.ts';
import { type FeatureShape } from '@/types/features.ts';

import { IS_PRO } from '@/core/constants.ts';

Expand Down