silgi 0.27.4 → 0.27.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.mjs
CHANGED
|
@@ -28,15 +28,15 @@ export function useSilgiRuntimeConfig(event, inlineRuntimeConfig = {}) {
|
|
|
28
28
|
}
|
|
29
29
|
const silgi = tryUseSilgi();
|
|
30
30
|
if (!silgi) {
|
|
31
|
-
if (!event) {
|
|
32
|
-
return _sharedRuntimeConfig;
|
|
33
|
-
}
|
|
34
31
|
if (globalThis._silgi_runtime) {
|
|
35
32
|
inlineRuntimeConfig = globalThis._silgi_runtime;
|
|
36
33
|
}
|
|
37
34
|
if (!_inlineSilgiRuntimeConfig) {
|
|
38
35
|
_sharedRuntimeConfig = initRuntimeConfig(envOptions, inlineRuntimeConfig);
|
|
39
36
|
}
|
|
37
|
+
if (!event) {
|
|
38
|
+
return _sharedRuntimeConfig;
|
|
39
|
+
}
|
|
40
40
|
const runtimeConfig2 = klona(_inlineSilgiRuntimeConfig);
|
|
41
41
|
applyEnv(runtimeConfig2, envOptions);
|
|
42
42
|
return runtimeConfig2;
|