From: Julian Fietkau Date: Sun, 13 Oct 2024 20:07:00 +0000 (+0200) Subject: Do not rely on import map in main script X-Git-Url: https://fietkau.software/Up-in-the-Air.git/commitdiff_plain?repo=Up-in-the-Air;h=3691940ad5ad232f9013552bb548bc2d857b6610;p=Up-in-the-Air;a=commitdiff_plain Do not rely on import map in main script --- diff --git a/index.html b/index.html index 197aec7..a2cce3f 100644 --- a/index.html +++ b/index.html @@ -903,8 +903,7 @@ diff --git a/main.js b/main.js index efa8d0b..144aa53 100644 --- a/main.js +++ b/main.js @@ -25,9 +25,9 @@ * */ -import * as THREE from 'three'; -import { FontLoader } from 'three/addons/loaders/FontLoader.js'; -import { TextGeometry } from 'three/addons/geometries/TextGeometry.js'; +import * as THREE from '/three/three.module.js'; +import { FontLoader } from '/three/addons/loaders/FontLoader.js'; +import { TextGeometry } from '/three/addons/geometries/TextGeometry.js'; window['startUpInTheAirGame'] = (game) => { diff --git a/addons/geometries/TextGeometry.js b/three/addons/geometries/TextGeometry.js similarity index 100% rename from addons/geometries/TextGeometry.js rename to three/addons/geometries/TextGeometry.js diff --git a/addons/loaders/FontLoader.js b/three/addons/loaders/FontLoader.js similarity index 100% rename from addons/loaders/FontLoader.js rename to three/addons/loaders/FontLoader.js diff --git a/three.module.js b/three/three.module.js similarity index 100% rename from three.module.js rename to three/three.module.js