Closed jbrocher closed 5 years ago
This is a bug introduced by @Fil in 942cb77638e1d1c0b6833c8840738d5c4a139b5a. This repository shouldn’t currently ship ES6 syntax, but we will likely be switching to ES6+ syntax in the next major release, at which point you’ll need to update your toolchain or environment accordingly.
Oops! thank you both
Crytal clear, thank you very much !
Hello ! I'm using d3-geo-projection as part of a project built using browserify and babelify. In my code I'm importing a projection form the module like so :
import {geoKavrayskiy7} from 'd3-geo-projection'
And after going through browserify and babelify it runs fine. However, after trying to minify the resulting file with uglify, I ran into this error :Which comes from the
sphere
function :What happens here is that the
d3-geo-projection
module doesn't go throughbabelify
before being imported .I'm guessing the projection I'm importing from the module doesn't use this function since no error is thrown in the browser. However uglify sees it and gets angry. I can probably fix that by including the module in the babelify transform.So I guess my question is : Is it normal to have bits of ES6 syntax in a module distributed through npm ?