Specify runtime exports (#10853)

This commit is contained in:
Huáng Jùnliàng
2020-10-14 14:06:56 -04:00
committed by GitHub
parent 21d7ee2610
commit 4e66b8eb6b
20 changed files with 1138 additions and 52 deletions

View File

@@ -1,7 +1,7 @@
import arrayWithHoles from "./arrayWithHoles";
import iterableToArray from "./iterableToArray";
import unsupportedIterableToArray from "./unsupportedIterableToArray";
import nonIterableRest from "./nonIterableRest";
import arrayWithHoles from "@babel/runtime/helpers/esm/arrayWithHoles";
import iterableToArray from "@babel/runtime/helpers/esm/iterableToArray";
import unsupportedIterableToArray from "@babel/runtime/helpers/esm/unsupportedIterableToArray";
import nonIterableRest from "@babel/runtime/helpers/esm/nonIterableRest";
export default function _toArray(arr) {
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
}