`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.
<script type="importmap">
{
"imports": {
<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"
- <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';
<script type="module">
import * as THREE from 'three';