File tree 1 file changed +7
-4
lines changed 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1003,12 +1003,15 @@ class Encore {
1003
1003
}
1004
1004
1005
1005
/**
1006
- * Call this if you plan on loading TypeScript files.
1006
+ * Call this to process TypeScript files through ts-loader .
1007
1007
*
1008
1008
* ```
1009
1009
* Encore.enableTypeScriptLoader()
1010
1010
* ```
1011
1011
*
1012
+ * Or see Encore.enableBabelTypeScriptPreset() for a faster
1013
+ * method of processing TypeScript files.
1014
+ *
1012
1015
* Or, configure the ts-loader options:
1013
1016
*
1014
1017
* ```
@@ -1053,12 +1056,12 @@ class Encore {
1053
1056
* Encore.enableBabelTypeScriptPreset()
1054
1057
* ```
1055
1058
*
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()`
1058
1061
* or `Encore.enableForkedTypeScriptTypesChecking()`.
1059
1062
*
1060
1063
* 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.
1062
1065
*
1063
1066
* The Babel TypeScript preset can be configured,
1064
1067
* see https://babeljs.io/docs/en/babel-preset-typescript#options
You can’t perform that action at this time.
0 commit comments