@builder.io/react 2.0.10-8 → 2.0.10

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/react",
3
- "version": "2.0.10-7",
3
+ "version": "2.0.10-9",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/builder-react.cjs.js",
@@ -24,7 +24,7 @@ var noop = function () { return null; };
24
24
  * 1. Node -> globalThis.require does not work
25
25
  * 2. Cloudflare edge -> only globalThis.require works
26
26
  */
27
- if (typeof globalThis.require === 'function' ||
27
+ if (typeof (globalThis === null || globalThis === void 0 ? void 0 : globalThis.require) === 'function' ||
28
28
  (sdk_1.Builder.isServer && typeof require === 'function')) {
29
29
  exports.safeDynamicRequire = eval('require');
30
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"safe-dynamic-require.js","sourceRoot":"","sources":["../../../../src/functions/safe-dynamic-require.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,uCAA0C;AAE1C,IAAM,IAAI,GAAG,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAC;AAKxB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,IACE,OAAO,UAAU,CAAC,OAAO,KAAK,UAAU;IACxC,CAAC,aAAO,CAAC,QAAQ,IAAI,OAAO,OAAO,KAAK,UAAU,CAAC,EACnD;IACA,0BAAkB,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;CACtC;AAED,0BAAkB,aAAlB,0BAAkB,cAAlB,0BAAkB,IAAlB,0BAAkB,GAAK,IAAW,EAAC"}
1
+ {"version":3,"file":"safe-dynamic-require.js","sourceRoot":"","sources":["../../../../src/functions/safe-dynamic-require.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,uCAA0C;AAE1C,IAAM,IAAI,GAAG,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAC;AAKxB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,IACE,OAAO,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,CAAA,KAAK,UAAU;IACzC,CAAC,aAAO,CAAC,QAAQ,IAAI,OAAO,OAAO,KAAK,UAAU,CAAC,EACnD;IACA,0BAAkB,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;CACtC;AAED,0BAAkB,aAAlB,0BAAkB,cAAlB,0BAAkB,IAAlB,0BAAkB,GAAK,IAAW,EAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/react",
3
- "version": "2.0.10-8",
3
+ "version": "2.0.10",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/builder-react.cjs.js",
@@ -29,7 +29,7 @@ export let safeDynamicRequire: typeof require;
29
29
  * 2. Cloudflare edge -> only globalThis.require works
30
30
  */
31
31
  if (
32
- typeof globalThis.require === 'function' ||
32
+ typeof globalThis?.require === 'function' ||
33
33
  (Builder.isServer && typeof require === 'function')
34
34
  ) {
35
35
  safeDynamicRequire = eval('require');