Bun.build fails with Threlte #18122
Labels
bug
Something isn't working
bundler
Something to do with the bundler
confirmed bug
We can reproduce this issue
What version of Bun is running?
1.2.5+013fdddc6
What platform is your computer?
Darwin 24.3.0 arm64 arm
What steps can reproduce the bug?
Bun.build can't resolve Threlte, even though it was added and installed properly.
bun add three @threlte/core
import { Canvas } from "@threlte/core";
to the script part, and<Canvas/>
to the html partbun run build.ts
What is the expected behavior?
Using other npm packages such as lodash seems to work fine, so the expectation is that Threlte also just works.
What do you see instead?
Additional information
Threlte is a Svelte wrapper for Three.js, so it shouldn't require any special build support. It works as expected when using vite as bundler.
The text was updated successfully, but these errors were encountered: