[runtime-corejs3] Only polyfill instance methods when it might be needed (#9754)

This commit is contained in:
Nicolò Ribaudo
2019-04-02 21:18:59 +02:00
committed by GitHub
parent 53e0622b54
commit e03eb17c08
9 changed files with 66 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
"".concat(b);
[].concat(b);
a.concat(b);

View File

@@ -0,0 +1,3 @@
{
"plugins": [["transform-runtime", { "corejs": 3 }]]
}

View File

@@ -0,0 +1,9 @@
var _concatInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/concat");
var _context;
"".concat(b);
_concatInstanceProperty(_context = []).call(_context, b);
_concatInstanceProperty(a).call(a, b);