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.
Put back ESM helpers in a folder where we can use
.js
(babel#12919)
- Loading branch information
1 parent
a653b9c
commit 9844eee
Showing
38 changed files
with
1,355 additions
and
1,365 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
export { default } from "../iterableToArray/_index.mjs" | ||
import _Symbol from "@babel/runtime-corejs2/core-js/symbol"; | ||
import _isIterable from "@babel/runtime-corejs2/core-js/is-iterable"; | ||
import _Array$from from "@babel/runtime-corejs2/core-js/array/from"; | ||
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 +1,5 @@ | ||
export { default } from "../temporalRef/_index.mjs" | ||
import undef from "./temporalUndefined.js"; | ||
import err from "./tdz.js"; | ||
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 +1,7 @@ | ||
export { default } from "../toArray/_index.mjs" | ||
import arrayWithHoles from "./arrayWithHoles.js"; | ||
import iterableToArray from "./iterableToArray.js"; | ||
import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; | ||
import nonIterableRest from "./nonIterableRest.js"; | ||
export default function _toArray(arr) { | ||
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest(); | ||
} |
File renamed without changes.
6 changes: 0 additions & 6 deletions
6
packages/babel-runtime-corejs2/helpers/iterableToArray/_index.mjs
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...abel-runtime/helpers/temporalRef/index.js → ...el-runtime-corejs2/helpers/temporalRef.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
5 changes: 0 additions & 5 deletions
5
packages/babel-runtime-corejs2/helpers/temporalRef/_index.mjs
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
var arrayWithHoles = require("./arrayWithHoles.js"); | ||
|
||
var iterableToArray = require("./iterableToArray.js"); | ||
|
||
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
|
||
var nonIterableRest = require("./nonIterableRest.js"); | ||
|
||
function _toArray(arr) { | ||
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest(); | ||
} | ||
|
||
module.exports = _toArray; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.