diff --git a/debian/patches/0500-use-umd.patch b/debian/patches/0500-use-umd.patch new file mode 100644 index 0000000000..1ed2dfd67a --- /dev/null +++ b/debian/patches/0500-use-umd.patch @@ -0,0 +1,19 @@ +--- a/app/assets/javascripts/blob/3d_viewer/index.js ++++ b/app/assets/javascripts/blob/3d_viewer/index.js +@@ -1,4 +1,4 @@ +-import * as THREE from 'three/build/three.module'; ++import * as THREE from 'three/build/three'; + import STLLoaderClass from 'three-stl-loader'; + import OrbitControlsClass from 'three-orbit-controls'; + import MeshObject from './mesh_object'; +--- a/app/assets/javascripts/blob/3d_viewer/mesh_object.js ++++ b/app/assets/javascripts/blob/3d_viewer/mesh_object.js +@@ -2,7 +2,7 @@ + Matrix4, + MeshLambertMaterial, + Mesh, +-} from 'three/build/three.module'; ++} from 'three/build/three'; + + const defaultColor = 0xE24329; + const materials = { diff --git a/debian/patches/series b/debian/patches/series index de82605072..94b045fa7b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -17,3 +17,4 @@ pid-log-paths.patch 0430-remove-devdeps.patch add-system-lib-path-for-webpack.patch fix-mail-room-path.patch +0500-use-umd.patch