From 14b51ef57c289f6a2622e0848b11d757183cd24d Mon Sep 17 00:00:00 2001
From: Jarred Sumner <jarred@jarredsumner.com>
Date: Mon, 8 Nov 2021 15:53:37 -0800
Subject: Disable Object.freeze

---
 packages/bun-framework-next/client.development.tsx | 14 --------------
 1 file changed, 14 deletions(-)

(limited to 'packages/bun-framework-next/client.development.tsx')

diff --git a/packages/bun-framework-next/client.development.tsx b/packages/bun-framework-next/client.development.tsx
index 5f25619ce..2dcffe55c 100644
--- a/packages/bun-framework-next/client.development.tsx
+++ b/packages/bun-framework-next/client.development.tsx
@@ -1,20 +1,6 @@
 globalThis.global = globalThis;
 globalThis.Bun_disableCSSImports = true;
 
-// We're disabling Object.freeze because it breaks CJS => ESM and can cause
-// issues with Suspense and other things that expect the CJS module namespace
-// to be mutable when the ESM module namespace is NOT mutable
-const freezer = new WeakSet();
-
-globalThis.Object.freeze = function freeze(obj) {
-  freezer.add(obj);
-  return obj;
-};
-
-globalThis.Object.isFrozen = function isFrozen(obj) {
-  return freezer.has(obj);
-};
-
 import * as React from "react";
 var onlyChildPolyfill = React.Children.only;
 React.Children.only = function (children) {
-- 
cgit v1.2.3

