Skip to content

Commit db29218

Browse files
author
Jannik Zschiesche
committed
Add explicit types
1 parent cfe8359 commit db29218

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Kaba.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export class Kaba
294294
*/
295295
private buildWebpackConfig (entry: string, entryFile: string, cliConfig: kaba.CliConfig, isModule: boolean): Partial<webpack.Configuration>
296296
{
297-
const babelLoader = {
297+
const babelLoader: webpack.RuleSetUseItem = {
298298
loader: "babel-loader?cacheDirectory",
299299
options: {
300300
babelrc: false,
@@ -312,8 +312,8 @@ export class Kaba
312312

313313
const entryName = isModule ? `_modern.${entry}` : entry;
314314

315-
let configTemplate = {
316315
name: isModule ? "modern" : "legacy",
316+
let configTemplate: webpack.Configuration = {
317317
entry: {
318318
[entryName]: entryFile,
319319
},
@@ -388,7 +388,7 @@ export class Kaba
388388
test: /\.css$/,
389389
loader: "ignore-loader",
390390
}
391-
] as webpack.RuleSetRule[],
391+
],
392392
},
393393

394394
// optimization

0 commit comments

Comments
 (0)