We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18525dc commit 3ab545fCopy full SHA for 3ab545f
npm/webpack-batteries-included-preprocessor/index.ts
@@ -278,10 +278,10 @@ preprocessor.defaultOptions = {
278
watchOptions: {},
279
}
280
281
-preprocessor.getFullWebpackOptions = (filePath: string, typescript: string | boolean) => {
+preprocessor.getFullWebpackOptions = (filePath?: string, typescript?: string | boolean) => {
282
const webpackOptions = getDefaultWebpackOptions()
283
284
- if (typescript) {
+ if (typescript && filePath) {
285
return addTypeScriptConfig({ filePath }, { typescript, webpackOptions }).webpackOptions
286
287
0 commit comments