You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The transform file defines the transformation to make to each file. The transform can be written in either JavaScript or TypeScript.
30
-
31
-
It needs to provide a named `transform` export that is a function. This transform function will be invoked for each file that matches the files to process.
32
-
33
-
```ts
34
-
// transform.ts
35
-
36
-
// Import the `Transform` type to provide type-safety when
This will pass the source of all files through the transform function specified with `-t` or `--transform` (defaults to `./transform.ts`). See the following sections for more details on the transform function and API.
56
+
57
+
## Transform
58
+
59
+
The transform function defines the transformation to make to each file. The transform can be written in either JavaScript or TypeScript, but TypeScript is recommended.
60
+
61
+
The transform function needs to be a named `transform` export from the transform file.
62
+
63
+
```ts
64
+
// transform.ts
65
+
66
+
// Import the `Transform` type to provide type-safety when
0 commit comments