File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
import axios from 'axios' ;
2
2
import packageInfo from '../package.json' ;
3
3
4
+ // @NOTE : this value is dynamically replaced based on browser/node environment
4
5
const USER_AGENT_DEFAULT = true ;
5
6
6
7
const packageVersion = packageInfo . version ;
Original file line number Diff line number Diff line change @@ -60,7 +60,8 @@ export default [
60
60
exclude : [ 'node_modules/**' , '../../node_modules/**' ]
61
61
} ) ,
62
62
replace ( {
63
- 'process.env.NODE_ENV' : `"${ process . env . NODE_ENV } "`
63
+ 'process.env.NODE_ENV' : `"${ process . env . NODE_ENV } "` ,
64
+ 'USER_AGENT_DEFAULT = true' : `USER_AGENT_DEFAULT = false`
64
65
} )
65
66
]
66
67
} ,
@@ -97,7 +98,8 @@ export default [
97
98
exclude : [ 'node_modules/**' , '../../node_modules/**' ]
98
99
} ) ,
99
100
replace ( {
100
- 'process.env.NODE_ENV' : `"${ process . env . NODE_ENV } "`
101
+ 'process.env.NODE_ENV' : `"${ process . env . NODE_ENV } "` ,
102
+ 'USER_AGENT_DEFAULT = true' : `USER_AGENT_DEFAULT = false`
101
103
} ) ,
102
104
terser ( )
103
105
]
You can’t perform that action at this time.
0 commit comments