Skip to content

Commit 7f3d61d

Browse files
authored
chore: Use core-js resource management polyfills in shell. (#1447)
1 parent 2d7aa47 commit 7f3d61d

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

deno.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
},
8989
"imports": {
9090
"commontools": "./packages/api/index.ts",
91+
"core-js/proposals/explicit-resource-management": "https://esm.sh/core-js/proposals/explicit-resource-management",
9192
"@astral/astral": "jsr:@astral/astral",
9293
"@cfworker/json-schema": "npm:@cfworker/json-schema@^4.1.0",
9394
"@cmd-johnson/oauth2-client": "jsr:@cmd-johnson/oauth2-client@^2.0.0",
@@ -125,4 +126,4 @@
125126
"zod-to-json-schema": "npm:zod-to-json-schema@^3.24.1",
126127
"zod": "npm:zod@^3.24.1"
127128
}
128-
}
129+
}

deno.lock

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/jumble/src/main.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import "core-js/proposals/explicit-resource-management";
12
import { StrictMode, useEffect } from "react";
23
import { createRoot } from "react-dom/client";
34
import { Runtime } from "@commontools/runner";

packages/shell/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import "core-js/proposals/explicit-resource-management";
12
import "@commontools/ui/v1";
23
import "@commontools/ui/v2";
34
import {
@@ -61,7 +62,7 @@ globalThis.addEventListener("navigate-to-charm", (e) => {
6162
}
6263
app.setSpace(spaceName);
6364
app.setActiveCharmId(charmId);
64-
65+
6566
// Update the browser URL to reflect the new location
6667
// (DefaultCharmList should not use this event, it sets activeCharmId directly)
6768
const href = getNavigationHref(spaceName, charmId);

0 commit comments

Comments
 (0)