Skip to content

Commit 7fc2b8d

Browse files
committed
type: hide iframe types
1 parent 6dba7ea commit 7fc2b8d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ export interface ModuleNamespace {
1717
[exportName: string]: unknown
1818
}
1919

20-
declare global {
21-
var __devjarRefreshRuntime: RefreshRuntime | undefined
22-
}
23-
2420
async function createModule(
2521
files: Record<string, string>,
2622
{ resolveModule, dependencies = {}, runtime = {} }: {
@@ -148,7 +144,11 @@ export default sheet;`
148144
}
149145
runtime.refreshRuntime = refreshRuntime
150146
runtime.refreshRuntime.injectIntoGlobalHook(self)
151-
globalThis.__devjarRefreshRuntime = runtime.refreshRuntime
147+
Object.defineProperty(globalThis, '__devjarRefreshRuntime', {
148+
configurable: true,
149+
value: runtime.refreshRuntime,
150+
writable: true,
151+
})
152152
}
153153

154154
if (!runtimeUrls['index']) {

0 commit comments

Comments
 (0)