Files
test-repo/scripts/build/transform/transforms/index.js
T
fisker Cheungandautofix-ci[bot] 7fb9875413 Allow plugin override builtin parsers when inferring parser (#17549)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-05 17:23:49 +08:00

25 lines
903 B
JavaScript

import transformArrayFindLast from "./transform-array-find-last.js";
import transformArrayFindLastIndex from "./transform-array-find-last-index.js";
import transformArrayToReversed from "./transform-array-to-reversed.js";
import transformObjectHasOwnCall from "./transform-object-has-own.js";
import transformRelativeIndexing from "./transform-relative-indexing.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 [
// Node.js 18.0.0
transformArrayFindLast,
transformArrayFindLastIndex,
// Node.js 16.9.0
transformObjectHasOwnCall,
// Node.js 16.6.0
transformRelativeIndexing,
// Node.js 15.0.0
transformStringReplaceAll,
// Node.js 20
transformArrayToReversed,
];