Add supports for polyfill computed methods (#10398)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
var _isArray = "isArray";
|
||||
|
||||
Array["from"]; // polyfill
|
||||
Array[_isArray]; // polyfill
|
||||
Array[of]; // don't polyfill
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": [["transform-runtime", { "corejs": 2 }]]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
var _Array$isArray = require("@babel/runtime-corejs2/core-js/array/is-array");
|
||||
|
||||
var _Array$from = require("@babel/runtime-corejs2/core-js/array/from");
|
||||
|
||||
var _isArray = "isArray";
|
||||
_Array$from; // polyfill
|
||||
|
||||
_Array$isArray; // polyfill
|
||||
|
||||
Array[of]; // don't polyfill
|
||||
@@ -1 +1 @@
|
||||
bar[filter]()
|
||||
bar[filter]()
|
||||
|
||||
Reference in New Issue
Block a user