forked from babel/babel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify runtime exports (babel#10853)
- Loading branch information
Showing
20 changed files
with
1,138 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/babel-runtime-corejs2/helpers/esm/iterableToArray.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import _Array$from from "../../core-js/array/from"; | ||
import _isIterable from "../../core-js/is-iterable"; | ||
import _Symbol from "../../core-js/symbol"; | ||
import _Array$from from "@babel/runtime-corejs2/core-js/array/from"; | ||
import _isIterable from "@babel/runtime-corejs2/core-js/is-iterable"; | ||
import _Symbol from "@babel/runtime-corejs2/core-js/symbol"; | ||
export default function _iterableToArray(iter) { | ||
if (typeof _Symbol !== "undefined" && _isIterable(Object(iter))) return _Array$from(iter); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import undef from "./temporalUndefined"; | ||
import err from "./tdz"; | ||
import undef from "@babel/runtime-corejs2/helpers/esm/temporalUndefined"; | ||
import err from "@babel/runtime-corejs2/helpers/esm/tdz"; | ||
export default function _temporalRef(val, name) { | ||
return val === undef ? err(name) : val; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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-corejs2/helpers/esm/arrayWithHoles"; | ||
import iterableToArray from "@babel/runtime-corejs2/helpers/esm/iterableToArray"; | ||
import unsupportedIterableToArray from "@babel/runtime-corejs2/helpers/esm/unsupportedIterableToArray"; | ||
import nonIterableRest from "@babel/runtime-corejs2/helpers/esm/nonIterableRest"; | ||
export default function _toArray(arr) { | ||
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.