Hello, Two.js! | Lukas Hermann | Observable
•ojs
•ojs
•ojs
•ojs
Comments (2)
Joshua Byrd
Sep 26, 2022
Since two.js switched to es6 module export it seems we need to use dynamic imports like this `Two = (await import("
https://cdn.skypack.dev/two.js@0.7
")).default` eg.
https://observablehq.com/@phocks/two-js-starfield-experiment#Two
Lukas Hermann
Sep 26, 2022
Good catch, thank you!
Reply
Add comment
Subscribe to notifications
0
0
Hello, Two.js! | Lukas Hermann | Observable