/
RaskolnickOFF
/
3D
Обзор
Документация
Войти
/
RaskolnickOFF
/
3D
Код
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
js/Importmap.js
30 строк
1 KB
RaskolnickOFF
Structure update
06 июн 2026, 03:18
06 июн 2026, 03:18
9bc1c25
Код
Авторство
О чём код?
// js/importmap.js const pathes = `{ "imports": { "three": "./js/dependencies/three.webgpu.min.js", "three/webgpu": "./js/dependencies/three.webgpu.min.js", "three/tsl": "./js/dependencies/three.tsl.min.js", "three/addons/": "./js/dependencies/addons/", "LIB": "./js/libs/Index.js", "SETTINGS": "./js/source/settings/Settings.js", "StageSetup": "./js/source/StageSetup.js", "source/core/": "./js/source/core/", "source/world/": "./js/source/world/", "EnvironmentState": "./js/source/environment/EnvironmentState.js", "WorldSetup": "./js/source/WorldSetup.js", "systems/inputs/": "./js/source/systems/inputs/", "systems/render/": "./js/source/systems/render/", "systems/movement/": "./js/source/systems/movement/", "systems/world/": "./js/source/systems/world/", "systems/interaction/": "./js/source/systems/interaction/", "systems/enemy/": "./js/source/systems/enemy/", "systems/survival/": "./js/source/systems/survival/", "source/ui/": "./js/source/ui/" } }`; const script = document.createElement('script'); script.type = 'importmap'; script.textContent = pathes; document.head.append(script);