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
*`transpile(projectDir: string, typeScriptFiles?: string[], definitionFiles?: string[], options?: ITypeScriptTranspileOptions): Promise<string>` - Transpiles specified files or all files in the project directory.
1075
-
If `options` are not specified the method will search for tsconfig.json file and get them from it.
1076
-
If there is no tsconfig.json file the method will use default options.
1077
-
If there are no `typeScriptFiles` all the files in the `projectDir` will be transpiled.
1078
-
The returned result is the output of the TypeScript compiler.
1079
-
1080
-
Sample usage:
1081
-
```JavaScript
1082
-
// Transpile only 2 files.
1083
-
var projectDir ="D:\\test\\project";
1084
-
var filesToTranspile = [path.join(projectDir,"app","components", "homeView", "homeView.ts"),
0 commit comments