Skip to content

Commit 0769306

Browse files
authored
Added default fallback value for enableBabelTypeScriptPreset
The encore config wrapper does not have an optional empty config fallback for `enableBabelTypeScriptPreset` and thus creates an invalid number of arguments notice when used.
1 parent 2e044a9 commit 0769306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ class Encore {
12061206
* @param {object} options
12071207
* @returns {Encore}
12081208
*/
1209-
enableBabelTypeScriptPreset(options) {
1209+
enableBabelTypeScriptPreset(options = {}) {
12101210
webpackConfig.enableBabelTypeScriptPreset(options);
12111211

12121212
return this;

0 commit comments

Comments
 (0)