]> git.ardis.lu - 991337.xyz/commitdiff
Upgrade three.js main
authorArdis Lu <ardisglu@gmail.com>
Thu, 10 Sep 2026 05:35:10 +0000 (22:35 -0700)
committerArdis Lu <ardisglu@gmail.com>
Thu, 10 Sep 2026 05:35:10 +0000 (22:35 -0700)
`FontLoader` and `three.core.js` must use the non-minified bundles because there are relative imports in `three` and `TextGeometry` that directly import these bundles, which the import map cannot override. Using a minified bundle in the import map would result in duplicate imports.

index.html

index 961fe7eb22e9b6cdd242b4ff40243ef80e267b03..9c9225ae5c9cfc8d83488e00623bd45e30cbb5fa 100644 (file)
   <script type="importmap">
   {
     "imports": {
-      "three": "https://cdn.jsdelivr.net/npm/three@0.185.0/build/three.module.min.js",
-      "OrbitControls": "https://cdn.jsdelivr.net/npm/three@0.185.0/examples/jsm/controls/OrbitControls.min.js",
-      "FontLoader": "https://cdn.jsdelivr.net/npm/three@0.185.0/examples/jsm/loaders/FontLoader.min.js",
-      "TextGeometry": "https://cdn.jsdelivr.net/npm/three@0.185.0/examples/jsm/geometries/TextGeometry.min.js"
+      "three": "https://cdn.jsdelivr.net/npm/three@0.186.0/build/three.module.min.js",
+      "OrbitControls": "https://cdn.jsdelivr.net/npm/three@0.186.0/examples/jsm/controls/OrbitControls.min.js",
+      "FontLoader": "https://cdn.jsdelivr.net/npm/three@0.186.0/examples/jsm/loaders/FontLoader.js",
+      "TextGeometry": "https://cdn.jsdelivr.net/npm/three@0.186.0/examples/jsm/geometries/TextGeometry.min.js"
     }
   }
   </script>
-  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.185.0/build/three.module.min.js" integrity="sha512-I68i240tOgV4+XEaWOhSb6g0DSYHBZvh5xV/OD4r8gMQLzMlCiGLKJMv2cLv/NSSclI/1OOqBQbcCa2GtLKToQ==" crossorigin>
-  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.185.0/build/three.core.min.js" integrity="sha512-pdYDnvXuqj1oUPiNlJfXhl9hA6b8PFp1Mq/coARUhObagQLUOiCnUA+diyXe/E6G8RDuw30dVBlrtMnE41HJQw==" crossorigin>
-  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.185.0/examples/jsm/controls/OrbitControls.min.js" integrity="sha512-yZ3bZKlLpW1sozqKgvK4duVSPV1bdtmnjHpwj6i8wMbrq96DW8EClhkhYlXeTuInQ12YZLhyn4yFwnoxjaOVIQ==" crossorigin>
-  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.185.0/examples/jsm/loaders/FontLoader.min.js" integrity="sha512-wXLuI8pYY54Jp1Wzm6mGjEWgAnyd9QXoPpeSC8YmbOmB3TzOfIvfYJ3Vnw6V66P/CrDSgAMwJBf4mS0EVIeNiw==" crossorigin>
-  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.185.0/examples/jsm/geometries/TextGeometry.min.js" integrity="sha512-rsJwdaqiSW5letcW19+N6j47wAcFuGnKtHJEnkwF9Qviqr2jixdjUcqHpLb+A+c/9EZ2CMnNqNkTWV6xreB/2Q==" crossorigin>
+  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.186.0/build/three.module.min.js" integrity="sha512-1aVJjfPlgGMh+y7BLzHN/szUg3c5h1yQ80CBCrG82wHJmHSnjnu8mjGC/ZtWyq4sjO34IG8DGrVSmscbDgtVPA==" crossorigin>
+  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.186.0/build/three.core.js" integrity="sha512-qlDOLg8zPtXvEqSrHL/iQY763kv248HYdKLW3j2F/XJDA/XnKZj1SNqvjXVrRe0gw96iMOgMFwj8cFSOtIrELQ==" crossorigin>
+  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.186.0/examples/jsm/controls/OrbitControls.min.js" integrity="sha512-CtsfRyuE3DB7Z+g7bh1puc+wxA0/UrsEiHphEwdtVOdvULJMWXSV+xYxBEOmEQhZCbLhT1t4OjC+/iI9IJfaWQ==" crossorigin>
+  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.186.0/examples/jsm/loaders/FontLoader.js" integrity="sha512-2bwekH0Vv6+OrW3gmjZeYpi/qiXtB7kbdlQ7SL+7rDOnRP5sET+bjB9p90uqBz7rfL2a35hCOv73YxzSB6aYEA==" crossorigin>
+  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.186.0/examples/jsm/geometries/TextGeometry.min.js" integrity="sha512-zKTBy5Bt2RPIkjZJSWXKoUuMj8DdB4Phe7MmnfWL7bxnIx4ZxIhKMDr7kkGhsQ2frs+xtjTsD9TWvNBygvb2mA==" crossorigin>
 
   <script type="module">
     import * as THREE from 'three';
This page took 0.043025 seconds and 4 git commands to generate.