three-stdlib: webpack4 tree-shaking fail with version 2.25.1
three-stdlib
version: 2.25.1
Problem description:
I use @react-three/drei for my 3D Scene in a webpack 4 project. after update three-stdlib version 2.25.1, I found that all three-stdlib.js build in the bundle. but itβs ok (tree-shaking) in version 2.25.0
Suggested solution:
I found some change in this commit https://github.com/pmndrs/three-stdlib/commit/644d2adc9a58f477895d990d84f0b9d772397d94
if this is realy a bug ?
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 16 (9 by maintainers)
I have no observability unless you use the latest version. We ship sourcemaps and no longer consume most libraries from NPM by blind chance that helps here since Iβve received no feedback and cannot reproduce as such. On that note, I additionally have #306 which may crudely help here in bypassing the tree-shaking mechanism altogether.
π This issue has been resolved in version 2.26.1 π
The release is available on:
Your semantic-release bot π¦π