three.js: update import not work
if version is r128,it’s working
when i update and just write
import * as THREE from "three";
- Device:Desktop
- OS:Windows7
- Browser:Chrome
- Three.js version: r132
- lang: VUE
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 25 (16 by maintainers)
0.132.2
has been published with sadness 🙃🙃0.132.1
has been published with no private class fields 🙃Was it too early to start using private class variables? Should we rename
#alphaTest
to_alphaTest
?That sounds very unappealing… Babel slows down the dev iteration process considerably.
Probably the only solution is to define these variables in the constructors instead.
Very disappointed with the bundlers ecosystem 😔
Yeah current bundlers are not quite ready for private class properties yet.
Newer version of bundler tools such as create-react-app 5.0 alpha are rolling out and they support private properties fine.
Indeed. When using new language features, checking the browser support isn’t enough anymore. Would be great to have something like
caniuse
but in context of bundlers/transpilers.🤦♂️
This is unrelated to the use of private variables. If you look at the release notes you’ll see that the exports have changed:
https://github.com/mrdoob/three.js/wiki/Migration-Guide#131--132
@0.132.0
, before#
got removed - plus latest troika and postprocessing. Works perfect again with@0.132.2
.Ok not even those.
We could transpile the whole
three.module.js
with babel for now, and remove the transpilation in a later stage.Alternative is not using class properties for now.
What do you think @mrdoob?
People, could you test if the latest version is working fine? Are normal class properties supported at least?