[Pkg-javascript-devel] Bug#884306: provide three.module.js as an es module

Pirate Praveen praveen at debian.org
Wed Dec 13 15:39:29 UTC 2017


package: three.js
version: 80+dfsg2-1
severity: important

When building gitlab 9.5.4 (currently in alioth git) I get the following
error.

ERROR in ./blob/3d_viewer/index.js
Module not found: Error: Can't resolve 'three/build/three.module' in
'/usr/share/gitlab/app/assets/javascripts/blob/3d_viewer'
 @ ./blob/3d_viewer/index.js 5:0-50
 @ ./blob/stl_viewer.js

ERROR in ./blob/3d_viewer/mesh_object.js
Module not found: Error: Can't resolve 'three/build/three.module' in
'/usr/share/gitlab/app/assets/javascripts/blob/3d_viewer'
 @ ./blob/3d_viewer/mesh_object.js 9:0-78
 @ ./blob/3d_viewer/index.js
 @ ./blob/stl_viewer.js


Newer version provide a an option to build this file as seen here
https://github.com/mrdoob/three.js/blob/dev/rollup.config.js

output: [
		{
			format: 'umd',
			name: 'THREE',
			file: 'build/three.js'
		},
		{
			format: 'es',
			file: 'build/three.module.js'
		}
]

gitlab wants minimum revision 84 so it would be a good idea to update to
latest upstream release as well.

Since babel and webpack is now in the archive, we could use that
combination to replace rollup.

If you are okay to switch to babel + webpack, I'd be happy to help.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 862 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20171213/b8986393/attachment.sig>


More information about the Pkg-javascript-devel mailing list