File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ module.exports = {
4848 } ) ,
4949 ) ;
5050
51- // Add DefinePlugin to expose just the version
51+ // Add DefinePlugin to expose just the version as a global variable
5252 config . plugins . push (
5353 new webpack . DefinePlugin ( {
54- 'process.env.UI_VERSION' : JSON . stringify ( packageJson . version ) ,
54+ __UI_VERSION__ : JSON . stringify ( packageJson . version ) ,
5555 } ) ,
5656 ) ;
5757
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export const autocompleteOnEnterSetting: SettingProps = {
141141export const interfaceVersionInfoField : SettingsInfoFieldProps = {
142142 title : i18n ( 'settings.about.interfaceVersionInfoField.title' ) ,
143143 type : 'info' ,
144- content : process . env . UI_VERSION ,
144+ content : __UI_VERSION__ ,
145145} ;
146146
147147export const appearanceSection : SettingsSection = {
Original file line number Diff line number Diff line change 11declare type AnyRecord = Record < string | number | symbol , unknown > ;
2+
3+ declare const __UI_VERSION__ : string ;
You can’t perform that action at this time.
0 commit comments