8 ms·
You can transpile pretty much anything. The transpiler doesn't have to just modify the declaration, it can also modify the calls... https://www.npmjs.com/packa
by throwaway2016a 8y ago
You can transpile pretty much anything. The transpiler doesn't have to just modify the declaration, it can also modify the calls...
https://www.npmjs.com/package/babel-plugin-proxy https://www.npmjs.com/package/babel-plugin-proxy
> they do not have an equivalent in "old javascript"
Sure they do. Function calls.
- franciscop 8y agoAh totally, I misspoke. I was talking from the point of view of a library author, where I'd like to transpile my code so anyone can include the library and use it. In the same way I can use const, transpile my code and no one worries about me using const internally, the same cannot be said for Proxy. So, between everyone having to transpile their client code or losing the few devs who need to support IE, I prefer the latter for my projects.