2
2
3
3
exports [` generateModuleText creates config module 1` ] = `
4
4
"
5
- const globalNamespace = (typeof window === 'undefined' ? globalThis : window) || { } ;
6
-
7
5
const config = { \\" foo\\ " :\\" bar\\ " } ;
8
6
9
7
export { config } ;
10
8
export default config;
11
9
12
- export function currentEnvironment() {
13
- return globalNamespace . _appConfigEnvironment || \\" test\\ " ;
14
- }
15
- "
10
+ export function currentEnvironment() {
11
+ return \\" test\\ " ;
12
+ }
13
+ "
16
14
` ;
17
15
18
16
exports [` generateModuleText creates config module with esm validation function 1` ] = `
19
17
"
20
- const globalNamespace = (typeof window === 'undefined' ? globalThis : window) || { } ;
21
-
18
+ const globalNamespace = (typeof window === 'undefined' ? globalThis : window) || { } ;
19
+
22
20
const configValue = { \\" foo\\ " :\\" bar\\ " } ;
23
21
24
22
// if the global was already defined, use it
@@ -47,16 +45,16 @@ exports[`generateModuleText creates config module with esm validation function 1
47
45
48
46
export const validateConfig = /*#__PURE__*/ genValidateConfig();
49
47
50
- export function currentEnvironment() {
51
- return globalNamespace ._appConfigEnvironment || \\" test\\ " ;
52
- }
53
- "
48
+ export function currentEnvironment() {
49
+ return globalNamespace ._appConfigEnvironment || \\" test\\ " ;
50
+ }
51
+ "
54
52
` ;
55
53
56
54
exports [` generateModuleText creates config module with global namespace 1` ] = `
57
55
"
58
- const globalNamespace = (typeof window === 'undefined' ? globalThis : window) || { } ;
59
-
56
+ const globalNamespace = (typeof window === 'undefined' ? globalThis : window) || { } ;
57
+
60
58
const configValue = { \\" foo\\ " :\\" bar\\ " } ;
61
59
62
60
// if the global was already defined, use it
@@ -73,16 +71,16 @@ exports[`generateModuleText creates config module with global namespace 1`] = `
73
71
export { config } ;
74
72
export default config;
75
73
76
- export function currentEnvironment() {
77
- return globalNamespace ._appConfigEnvironment || \\" test\\ " ;
78
- }
79
- "
74
+ export function currentEnvironment() {
75
+ return globalNamespace ._appConfigEnvironment || \\" test\\ " ;
76
+ }
77
+ "
80
78
` ;
81
79
82
80
exports [` generateModuleText creates config module with validation function 1` ] = `
83
81
"
84
- const globalNamespace = (typeof window === 'undefined' ? globalThis : window) || { } ;
85
-
82
+ const globalNamespace = (typeof window === 'undefined' ? globalThis : window) || { } ;
83
+
86
84
const configValue = { \\" foo\\ " :\\" bar\\ " } ;
87
85
88
86
// if the global was already defined, use it
@@ -111,8 +109,8 @@ exports[`generateModuleText creates config module with validation function 1`] =
111
109
112
110
export const validateConfig = /*#__PURE__*/ genValidateConfig();
113
111
114
- export function currentEnvironment() {
115
- return globalNamespace ._appConfigEnvironment || \\" test\\ " ;
116
- }
117
- "
112
+ export function currentEnvironment() {
113
+ return globalNamespace ._appConfigEnvironment || \\" test\\ " ;
114
+ }
115
+ "
118
116
` ;
0 commit comments