Closed TrySound closed 4 years ago
detect-node does not support esm. In this diff I replaced it with detection via browser field. This way a lot of package use instead of checking globals.
See here https://github.com/visgl/react-map-gl/blob/master/package.json#L17-L25
What about using detect-node-es ?
I don't mind if you want to use it.
Perfect 👍
detect-node does not support esm. In this diff I replaced it with detection via browser field. This way a lot of package use instead of checking globals.
See here https://github.com/visgl/react-map-gl/blob/master/package.json#L17-L25