Add comments for transforms (#16411)
This commit is contained in:
1 parent
90f27a845b
commit
76524552ea
1 file changed
+8
@@ -4,10 +4,18 @@ import transformObjectHasOwnCall from "./transform-object-has-own.js";
|
|||||||
import transformRelativeIndexing from "./transform-relative-indexing.js";
|
import transformRelativeIndexing from "./transform-relative-indexing.js";
|
||||||
import transformStringReplaceAll from "./transform-string-replace-all.js";
|
import transformStringReplaceAll from "./transform-string-replace-all.js";
|
||||||
|
|
||||||
|
// These transforms are like Babel and core-js
|
||||||
|
// Allow us to use JavaScript features in our source code that are not yet
|
||||||
|
// implemented in the Node.js version we support
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
|
// Node.js 18.0.0
|
||||||
transformArrayFindLast,
|
transformArrayFindLast,
|
||||||
transformArrayFindLastIndex,
|
transformArrayFindLastIndex,
|
||||||
|
// Node.js 16.9.0
|
||||||
transformObjectHasOwnCall,
|
transformObjectHasOwnCall,
|
||||||
|
// Node.js 16.6.0
|
||||||
transformRelativeIndexing,
|
transformRelativeIndexing,
|
||||||
|
// Node.js 15.0.0
|
||||||
transformStringReplaceAll,
|
transformStringReplaceAll,
|
||||||
];
|
];
|
||||||
Reference in new issue
Block a user