Skip to content

Commit 0ad9ace

Browse files
committed
Making enableTypeScriptLoader() options callback optional
1 parent c5c3d23 commit 0ad9ace

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

index.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,17 +345,19 @@ module.exports = {
345345
/**
346346
* Call this if you plan on loading TypeScript files.
347347
*
348+
* Encore.enableTypeScriptLoader()
349+
*
350+
* Or, configure the ts-loader options:
351+
*
348352
* 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;
350355
* });
351356
*
352-
* Supported configuration options:
353-
* @see https://github.com/TypeStrong/ts-loader/blob/master/README.md#available-options
354-
*
355357
* @param {function} callback
356358
* @return {exports}
357359
*/
358-
enableTypeScriptLoader(callback) {
360+
enableTypeScriptLoader(callback = () => {}) {
359361
webpackConfig.enableTypeScriptLoader(callback);
360362
},
361363

0 commit comments

Comments
 (0)