Skip to content

Commit e1d5db0

Browse files
fix: ensure webpack typescript template runs (#3038)
1 parent 2ff9dce commit e1d5db0

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

packages/template/webpack-typescript/tmpl/webpack.main.config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import type { Configuration } from 'webpack';
22

3+
import { rules } from './webpack.rules';
4+
35
export const mainConfig: Configuration = {
46
/**
57
* This is the main entry point for your application, it's the first file
@@ -8,7 +10,7 @@ export const mainConfig: Configuration = {
810
entry: './src/index.ts',
911
// Put your normal webpack config below here
1012
module: {
11-
rules: require('./webpack.rules'),
13+
rules,
1214
},
1315
resolve: {
1416
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css', '.json'],

packages/template/webpack-typescript/tmpl/webpack.plugins.js

-7
This file was deleted.

packages/template/webpack-typescript/tmpl/webpack.plugins.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ import type IForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
33
// eslint-disable-next-line @typescript-eslint/no-var-requires
44
const ForkTsCheckerWebpackPlugin: typeof IForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
55

6-
export const plugins = [new ForkTsCheckerWebpackPlugin()];
6+
export const plugins = [
7+
new ForkTsCheckerWebpackPlugin({
8+
logger: 'webpack-infrastructure',
9+
}),
10+
];

0 commit comments

Comments
 (0)