Skip to content

Commit

Permalink
Only apply React DOM polyfill in kitchen sink worker
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonmade committed Nov 14, 2024
1 parent b600374 commit 4a2242e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/kitchen-sink/app/remote/examples/react.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @jsxRuntime automatic */
/** @jsxImportSource react */

import '@remote-dom/react/polyfill';
import {useState, useRef} from 'react';
import {createRoot} from 'react-dom/client';
import {createRemoteComponent} from '@remote-dom/react';
Expand Down
2 changes: 2 additions & 0 deletions examples/kitchen-sink/app/remote/worker/sandbox.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import '@remote-dom/core/polyfill';
import '@remote-dom/react/polyfill';

import {ThreadWebWorker} from '@quilted/threads';

import '../elements.ts';
Expand Down

0 comments on commit 4a2242e

Please sign in to comment.