From 3f16cb26e6a5e7858c9c3db10d02bec9c18b9511 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 27 Jan 2019 17:27:14 +0100 Subject: remove dependencies from DRACO and MeshLine --- client/splash/vendor/three.meshline.js | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) (limited to 'client/splash/vendor/three.meshline.js') diff --git a/client/splash/vendor/three.meshline.js b/client/splash/vendor/three.meshline.js index c6e998e3..00096f58 100644 --- a/client/splash/vendor/three.meshline.js +++ b/client/splash/vendor/three.meshline.js @@ -1,14 +1,4 @@ -;(function() { - -"use strict"; - -var root = this - -var has_require = typeof require !== 'undefined' - -var THREE = root.THREE || has_require && require('three') -if( !THREE ) - throw new Error( 'MeshLine requires three.js' ) +import * as THREE from 'three'; function MeshLine() { @@ -471,16 +461,7 @@ MeshLineMaterial.prototype.copy = function ( source ) { }; -if( typeof exports !== 'undefined' ) { - if( typeof module !== 'undefined' && module.exports ) { - exports = module.exports = { MeshLine: MeshLine, MeshLineMaterial: MeshLineMaterial }; - } - exports.MeshLine = MeshLine; - exports.MeshLineMaterial = MeshLineMaterial; -} -else { - root.MeshLine = MeshLine; - root.MeshLineMaterial = MeshLineMaterial; -} - -}).call(this); \ No newline at end of file +export default { + MeshLine, + MeshLineMaterial, +}; -- cgit v1.2.3-70-g09d2