@rpcbase/env 0.23.0 → 0.24.0

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.
@@ -17,7 +17,7 @@ const ensureDefaultEnvFlags = (env, hints) => {
17
17
  return;
18
18
  }
19
19
  const target = env;
20
- if (typeof target.SSR !== "boolean") {
20
+ if (hints.isServer || typeof target.SSR !== "boolean") {
21
21
  target.SSR = hints.isServer;
22
22
  }
23
23
  if (typeof target.MODE !== "string" || target.MODE.length === 0) {
package/dist/polyfill.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as hasRbEnv, e as ensureDefaultEnvFlags, c as cloneEnv, a as hasWindow } from "./ensureDefaultEnvFlags-BK0agrd6.js";
1
+ import { h as hasRbEnv, e as ensureDefaultEnvFlags, c as cloneEnv, a as hasWindow } from "./ensureDefaultEnvFlags-dWUH3CzL.js";
2
2
  const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
3
3
  const resolveViteEnv = () => {
4
4
  if (typeof __vite_env__ === "undefined") {
@@ -1,5 +1,5 @@
1
1
  import { l as loadProcessEnv } from "./loadProcessEnv-C2ldVaD0.js";
2
- import { h as hasRbEnv, e as ensureDefaultEnvFlags, c as cloneEnv } from "./ensureDefaultEnvFlags-BK0agrd6.js";
2
+ import { h as hasRbEnv, e as ensureDefaultEnvFlags, c as cloneEnv } from "./ensureDefaultEnvFlags-dWUH3CzL.js";
3
3
  const resolveModeHint = () => {
4
4
  if (typeof process === "undefined") {
5
5
  return void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/env",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"