Skip to content

Commit

Permalink
fix: ensure webpack typescript template runs (#3038)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored Nov 1, 2022
1 parent 2ff9dce commit e1d5db0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { Configuration } from 'webpack';

import { rules } from './webpack.rules';

export const mainConfig: Configuration = {
/**
* This is the main entry point for your application, it's the first file
Expand All @@ -8,7 +10,7 @@ export const mainConfig: Configuration = {
entry: './src/index.ts',
// Put your normal webpack config below here
module: {
rules: require('./webpack.rules'),
rules,
},
resolve: {
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css', '.json'],
Expand Down
7 changes: 0 additions & 7 deletions packages/template/webpack-typescript/tmpl/webpack.plugins.js

This file was deleted.

6 changes: 5 additions & 1 deletion packages/template/webpack-typescript/tmpl/webpack.plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ import type IForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const ForkTsCheckerWebpackPlugin: typeof IForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');

export const plugins = [new ForkTsCheckerWebpackPlugin()];
export const plugins = [
new ForkTsCheckerWebpackPlugin({
logger: 'webpack-infrastructure',
}),
];

0 comments on commit e1d5db0

Please sign in to comment.