Skip to content

Commit 4ce6f35

Browse files
committed
enableBabelTypeScriptPreset() documentation tweaks
1 parent 03f217a commit 4ce6f35

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,12 +1003,15 @@ class Encore {
10031003
}
10041004

10051005
/**
1006-
* Call this if you plan on loading TypeScript files.
1006+
* Call this to process TypeScript files through ts-loader.
10071007
*
10081008
* ```
10091009
* Encore.enableTypeScriptLoader()
10101010
* ```
10111011
*
1012+
* Or see Encore.enableBabelTypeScriptPreset() for a faster
1013+
* method of processing TypeScript files.
1014+
*
10121015
* Or, configure the ts-loader options:
10131016
*
10141017
* ```
@@ -1053,12 +1056,12 @@ class Encore {
10531056
* Encore.enableBabelTypeScriptPreset()
10541057
* ```
10551058
*
1056-
* This method let Babel handle your TypeScript code
1057-
* and can not be used with `Encore.enableTypeScriptLoader()`
1059+
* This method lets Babel handle your TypeScript code
1060+
* and cannot be used with `Encore.enableTypeScriptLoader()`
10581061
* or `Encore.enableForkedTypeScriptTypesChecking()`.
10591062
*
10601063
* Since all types are removed by Babel,
1061-
* you must run `tsc --noEmit` yourself for types checking.
1064+
* you must run `tsc --noEmit` yourself for type checking.
10621065
*
10631066
* The Babel TypeScript preset can be configured,
10641067
* see https://babeljs.io/docs/en/babel-preset-typescript#options

0 commit comments

Comments
 (0)