diff --git a/packages/core/src/utils/constants.ts b/packages/core/src/utils/constants.ts index acd773281..460e4f6b8 100644 --- a/packages/core/src/utils/constants.ts +++ b/packages/core/src/utils/constants.ts @@ -2,7 +2,7 @@ import { ThemeName, ThemePair } from '../types' const pkg = require('../../package.json') // tslint:disable-line -export const APP_VERSION = pkg.version as string +export const APP_VERSION = `${pkg.version || ''}`.replace(/\-\d+$/g, '') const _window = typeof window !== 'undefined' ? window : undefined export const HOSTNAME =