Webgpu treeshaking

Hello :slight_smile:

is there tree shaking available for webgpu?

1 Like

Its not tree shakable because the engine is a factory function, so you always get webgl and webgpu. That being said, i got the ocean demo down to 1.1mb out of the 3.5mb in core , which is mostly fine. To shake out the webgl engine, we’d have to move the browser capability check to a global and replace it at build time.

1 Like

@waverider404 not for now but @RaananW has great plan about a new esm modules

1 Like

Awesome! :raised_hands:

Nice ! Sent you a dm on slack :slightly_smiling_face:

2 Likes