Skip to content

Commit 2686a40

Browse files
committed
fix: check for process before reading process.env
1 parent d989185 commit 2686a40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/get-class-list-from-props.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const ICON_PACKS_STARTING_VERSION = '7.0.0-alpha1'
1+
export const ICON_PACKS_STARTING_VERSION = '7.0.0'
22

33
// Try to get version from installed package first, fallback to env var, then default
44
let SVG_CORE_VERSION
@@ -7,7 +7,7 @@ try {
77
SVG_CORE_VERSION = svgCorePackageJson.version
88
} catch (e) {
99
// If package.json can't be loaded, try environment variable
10-
SVG_CORE_VERSION = process.env.FA_VERSION || '7.0.0-alpha8'
10+
SVG_CORE_VERSION = (typeof process !== 'undefined' && process.env.FA_VERSION) || '7.0.0'
1111
}
1212

1313
export { SVG_CORE_VERSION }

0 commit comments

Comments
 (0)