How can I create a javascript library (distributed as module on npm) with different implementations depending on whether the environment it gets run in (transpiled to??) has proxy support or not?
As I understand it babel doesn't (at least easily) support transpilling proxies so this isn't easily fixable just via transpilation.