Skip to content

Commit

Permalink
externalize threejs
Browse files Browse the repository at this point in the history
  • Loading branch information
jerzakm committed Feb 11, 2024
1 parent 121c8b2 commit a8aac5e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wicked-jeans-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@threejs-kit/instanced-sprite-mesh": patch
---

Externalize threejs
2 changes: 1 addition & 1 deletion packages/instanced-sprite-mesh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"vite-plugin-dts": "^3.6.3"
},
"peerDependencies": {
"three": ">=0.159.0"
"three": ">=0.151.0"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 3 additions & 0 deletions packages/instanced-sprite-mesh/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export default defineConfig({
formats: ["es"],
fileName: "index",
},
rollupOptions: {
external: ["three"],
},
},
plugins: [
dts({
Expand Down

0 comments on commit a8aac5e

Please sign in to comment.