Closed noorbakerally closed 4 years ago
@noorbakerally I think you are trying to minify ES6 code in this library using uglify
, which only supports ES5
syntax I believe. You can solve it by switching to terser, or pre-transpiling down to ES5 before minifying.
As for more info on why the module exposes ES6 code, please see https://github.com/d3/d3-force/issues/134
I am getting an error when compiling:
static/js/main.f65c36cd.js from UglifyJs SyntaxError: Unexpected token: operator (>) [./~/d3-force-3d/dist/d3-force-3d.js:245,0]