Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion packages/repl/src/lib/workers/bundler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,15 @@ async function get_bundle(
}

const res = await fetch_if_uncached(resolved, uid);
return res?.body;

let result = res?.body;

// gross, temporary hack
if (resolved.includes('@threlte/core')) {
return result?.replace(`import './types.d.ts';`, '');
}

return result;
},
transform(code, id) {
if (uid !== current_id) throw ABORT;
Expand Down
Loading