Skip to content

Commit df5c59d

Browse files
committed
feat: unbundle r3f now its on npm
1 parent 6dbd0bd commit df5c59d

File tree

5 files changed

+8
-24
lines changed

5 files changed

+8
-24
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
[![logo](docs/logo.jpg)](https://codesandbox.io/s/bfplr)
88

9-
> [!WARNING]
10-
> **v11 Alpha** — This package is currently in **alpha** for v11. APIs, files, and features are **subject to change**.
9+
> [!WARNING] > **v11 Alpha** — This package is currently in **alpha** for v11. APIs, files, and features are **subject to change**.
1110
>
1211
> 📖 **[Migration Guide](./devDocs/MIGRATION_V10_TO_V11.md)** — Start here for upgrade instructions
1312
>
@@ -26,11 +25,9 @@ If you make a component that is generic enough to be useful to others, think abo
2625
npm install @react-three/drei
2726
```
2827

29-
> [!IMPORTANT]
30-
> **v11 is ESM-only.** We no longer ship CommonJS bundles. This follows the ecosystem-wide shift to ESM as the standard — matching `@react-three/fiber`, Three.js, and [Storybook 10](https://storybook.js.org/blog/storybook-is-going-esm-only/). All modern bundlers handle ESM natively.
28+
> [!IMPORTANT] > **v11 is ESM-only.** We no longer ship CommonJS bundles. This follows the ecosystem-wide shift to ESM as the standard — matching `@react-three/fiber`, Three.js, and [Storybook 10](https://storybook.js.org/blog/storybook-is-going-esm-only/). All modern bundlers handle ESM natively.
3129
32-
> [!NOTE]
33-
> ~~This package is using the stand-alone [`three-stdlib`](https://github.com/pmndrs/three-stdlib) instead of [`three/examples/jsm`](https://github.com/mrdoob/three.js/tree/master/examples/jsm).~~
30+
> [!NOTE] > ~~This package is using the stand-alone [`three-stdlib`](https://github.com/pmndrs/three-stdlib) instead of [`three/examples/jsm`](https://github.com/mrdoob/three.js/tree/master/examples/jsm).~~
3431
> Reliance on STD-Lib has been removed with v11. The threejs repo and @types folks are doing a much better job and supporting/working with core on these common assets serves us better.
3532
3633
New scripts, components, shaders, can be addded here in this repo or in the upcoming market.

devDocs/MIGRATION_V10_TO_V11.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,6 @@
99
1010
---
1111

12-
> ⚠️ **Bundled R3F v10**
13-
>
14-
> This alpha release **bundles @react-three/fiber v10** directly until R3F v10 is published to NPM.
15-
> Once R3F v10 alpha is available on NPM, drei will switch to a normal peer dependency.
16-
>
17-
> **What this means for you:**
18-
>
19-
> - Don't install R3F separately — it's included
20-
> - Your project may have version conflicts if you have an existing R3F installation
21-
> - Remove any existing `@react-three/fiber` from your dependencies before testing
22-
23-
---
24-
2512
## Progress: ~90%
2613

2714
**What's left:**
-1.24 MB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"@babel/preset-typescript": "^7.26.0",
120120
"@chromatic-com/storybook": "^4.1.3",
121121
"@playwright/test": "^1.45.2",
122-
"@react-three/fiber": "file:./lib/react-three-fiber-10.0.0-alpha.0.tgz",
122+
"@react-three/fiber": "^10.0.0-alpha.0",
123123
"@rollup/plugin-babel": "^5.3.0",
124124
"@rollup/plugin-commonjs": "^19.0.0",
125125
"@rollup/plugin-json": "^4.1.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3400,7 +3400,7 @@ __metadata:
34003400
"@mediapipe/tasks-vision": "npm:0.10.17"
34013401
"@monogrid/gainmap-js": "npm:^3.0.6"
34023402
"@playwright/test": "npm:^1.45.2"
3403-
"@react-three/fiber": "file:./lib/react-three-fiber-10.0.0-alpha.0.tgz"
3403+
"@react-three/fiber": "npm:^10.0.0-alpha.0"
34043404
"@rollup/plugin-babel": "npm:^5.3.0"
34053405
"@rollup/plugin-commonjs": "npm:^19.0.0"
34063406
"@rollup/plugin-json": "npm:^4.1.0"
@@ -3481,9 +3481,9 @@ __metadata:
34813481
languageName: unknown
34823482
linkType: soft
34833483

3484-
"@react-three/fiber@file:./lib/react-three-fiber-10.0.0-alpha.0.tgz::locator=%40react-three%2Fdrei%40workspace%3A.":
3484+
"@react-three/fiber@npm:^10.0.0-alpha.0":
34853485
version: 10.0.0-alpha.0
3486-
resolution: "@react-three/fiber@file:./lib/react-three-fiber-10.0.0-alpha.0.tgz#./lib/react-three-fiber-10.0.0-alpha.0.tgz::hash=76b84f&locator=%40react-three%2Fdrei%40workspace%3A."
3486+
resolution: "@react-three/fiber@npm:10.0.0-alpha.0"
34873487
dependencies:
34883488
"@babel/runtime": "npm:^7.17.8"
34893489
dequal: "npm:^2.0.3"
@@ -3500,7 +3500,7 @@ __metadata:
35003500
peerDependenciesMeta:
35013501
react-dom:
35023502
optional: true
3503-
checksum: 10c0/2752bc63bd80b3633fcc8b8cd820fad779461930980fb86f62cd05e74dee9d9c9827feb967ef657356af9b354bcb3a170a651b4b9cd079b3545cac41885f53e3
3503+
checksum: 10c0/606a1206bf769df51d9e8d9f132d63bc9045f6cc66a25805a74ea166271bf0fdace9a4091d9479cc2458b21a7e4b44d7f9e819ade12ec4619af70a3397b2cb5c
35043504
languageName: node
35053505
linkType: hard
35063506

0 commit comments

Comments
 (0)