looking at the introduction on the Internet, using babel-polyfill
can pollute global variables. The combination of babel-runtime+babel-plugin-transform-runtime
will solve the problem of polluting global variables, and modules that need to be compatible can be introduced on demand. But I read some articles saying that babe-runtime will not transcode the instance code
for example:
[1, 2, 3].include(1)
does this mean that babel-runtime still can"t transform things related to api? if so, how do you solve es6 api compatibility when using babel-runtime?