Closed qiulang closed 6 months ago
Array#push
is polyfilled in modern V8 -> Chrome because of a bug in some specific cases, the info you could find in the files that you mentioned.
You could use exclude
preset-env
option to exclude this polyfill.
It's not the correct place for questions about .babelrc
, it's better to ask Babel team about it.
Hi, this is a question I don't know whether I should raise to corejs or babeljs. I don't want babel to polyfill
array.push
. But how ?I have the following .babelrc but I still see
array.push
is injected.After all, this is a very basic array function I am happy with browsers' (chromium browsers) implementation.
I read the array.push but it is not clear to me how you implement push function.