Buckets:
| import type { API, FileInfo } from 'jscodeshift' | |
| import { transformDynamicProps } from './next-async-dynamic-prop' | |
| import { transformDynamicAPI } from './next-async-dynamic-api' | |
| export default function transform(file: FileInfo, api: API) { | |
| const transforms = [transformDynamicProps, transformDynamicAPI] | |
| return transforms.reduce<string>((source, transformFn) => { | |
| const result = transformFn(source, api, file.path) | |
| if (!result) { | |
| return source | |
| } | |
| return result | |
| }, file.source) | |
| } | |
Xet Storage Details
- Size:
- 508 Bytes
- Xet hash:
- e8c2c34ba2d9b16858e70d2d16ae970257fde80025874300f8428dfffb3b42dd
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.