File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -345,17 +345,19 @@ module.exports = {
345
345
/**
346
346
* Call this if you plan on loading TypeScript files.
347
347
*
348
+ * Encore.enableTypeScriptLoader()
349
+ *
350
+ * Or, configure the ts-loader options:
351
+ *
348
352
* Encore.enableTypeScriptLoader(function(tsConfig) {
349
- * // change the tsConfig
353
+ * // https://github.com/TypeStrong/ts-loader/blob/master/README.md#loader-options
354
+ * // tsConfig.silent = false;
350
355
* });
351
356
*
352
- * Supported configuration options:
353
- * @see https://github.com/TypeStrong/ts-loader/blob/master/README.md#available-options
354
- *
355
357
* @param {function } callback
356
358
* @return {exports }
357
359
*/
358
- enableTypeScriptLoader ( callback ) {
360
+ enableTypeScriptLoader ( callback = ( ) => { } ) {
359
361
webpackConfig . enableTypeScriptLoader ( callback ) ;
360
362
} ,
361
363
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ class WebpackConfig {
226
226
this . useReact = true ;
227
227
}
228
228
229
- enableTypeScriptLoader ( callback ) {
229
+ enableTypeScriptLoader ( callback = ( ) => { } ) {
230
230
this . useTypeScriptLoader = true ;
231
231
232
232
if ( typeof callback !== 'function' ) {
You can’t perform that action at this time.
0 commit comments