Skip to content

Commit 3ab545f

Browse files
committed
make filePath and typescript args optional
1 parent 18525dc commit 3ab545f

File tree

1 file changed

+2
-2
lines changed
  • npm/webpack-batteries-included-preprocessor

1 file changed

+2
-2
lines changed

npm/webpack-batteries-included-preprocessor/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,10 @@ preprocessor.defaultOptions = {
278278
watchOptions: {},
279279
}
280280

281-
preprocessor.getFullWebpackOptions = (filePath: string, typescript: string | boolean) => {
281+
preprocessor.getFullWebpackOptions = (filePath?: string, typescript?: string | boolean) => {
282282
const webpackOptions = getDefaultWebpackOptions()
283283

284-
if (typescript) {
284+
if (typescript && filePath) {
285285
return addTypeScriptConfig({ filePath }, { typescript, webpackOptions }).webpackOptions
286286
}
287287

0 commit comments

Comments
 (0)