@sequent-org/ifc-viewer 1.0.10000001-ci.16.0 → 1.0.22000000001-ci.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sequent-org/ifc-viewer",
3
3
  "private": false,
4
- "version": "1.0.10000001-ci.16.0",
4
+ "version": "1.0.22000000001-ci.17.0",
5
5
  "type": "module",
6
6
  "description": "IFC 3D model viewer component for web applications",
7
7
  "main": "src/index.js",
@@ -70,17 +70,18 @@ try {
70
70
  globalThis.__THREE_BUFFER_GEOMETRY_UTILS_PATCH__ = patchedUtils;
71
71
  }
72
72
 
73
- // Патчим модуль BufferGeometryUtils через import.meta
73
+ // Патчим модуль BufferGeometryUtils через Promise (без top-level await)
74
74
  if (typeof import.meta !== 'undefined' && import.meta.glob) {
75
- // Для Vite - патчим через import.meta.glob
76
- try {
77
- const utilsModule = await import('three/examples/jsm/utils/BufferGeometryUtils.js');
75
+ // Для Vite - патчим через Promise
76
+ import('three/examples/jsm/utils/BufferGeometryUtils.js').then(utilsModule => {
78
77
  if (utilsModule && !utilsModule.mergeGeometries) {
79
78
  utilsModule.mergeGeometries = mergeGeometries;
79
+ console.log('✅ Three.js патч: mergeGeometries добавлен в BufferGeometryUtils модуль');
80
80
  }
81
- } catch (e) {
81
+ }).catch(e => {
82
82
  // Игнорируем ошибки импорта
83
- }
83
+ console.warn('Three.js патч: не удалось загрузить BufferGeometryUtils модуль:', e.message);
84
+ });
84
85
  }
85
86
 
86
87
  console.log('✅ Three.js патч: BufferGeometryUtils готов для web-ifc-three');