Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vatro/threeshake

migrate 'three/examples' modules to 'three/src' incl. all dependencies and available type definitions. This way they can be imported from 'three' and are treeshakable.
https://github.com/vatro/threeshake

Last synced: 16 days ago
JSON representation

migrate 'three/examples' modules to 'three/src' incl. all dependencies and available type definitions. This way they can be imported from 'three' and are treeshakable.

Awesome Lists containing this project

README

        

**Release canceled** (may be reconsidered) in favor of three-shaking with [Vite](https://github.com/vitejs/vite)!
Even though this is working and might be usefull in certain scenarios, release has been canceled in favor of three-shaking with [Vite](https://github.com/vitejs/vite). Please star / leave a comment if you would like to see it published as an npm package despite the fact it may be obsolete nowadays.

# threeshake
*Initial Motivation: faster generation of future [svelthree-three](https://github.com/vatro/svelthree-three) versions*

**Primary:** Make [three/examples](https://github.com/mrdoob/three.js/tree/dev/examples) folder modules importable `... from 'three'` / treeshakable incl. all resolved dependencies and typings.

**Also cool:** Got used to having type definitions included in the three.js source? *threeshake* can bring them back / migrate them from [@types/three](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three).

![image](https://user-images.githubusercontent.com/3778969/113224745-58edfa80-928c-11eb-9f5b-67d56bbc7dc8.png)