Skip to content

Commit

Permalink
fix(webpack): require ForkTsCheckerWebpackPlugin only as required (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo authored Feb 5, 2024
1 parent 7285253 commit bf62661
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { createLoaderFromCompiler } from './compiler-loaders';
import { NormalizedNxWebpackPluginOptions } from '../nx-webpack-plugin-options';
import TerserPlugin = require('terser-webpack-plugin');
import nodeExternals = require('webpack-node-externals');
import ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');

const IGNORED_WEBPACK_WARNINGS = [
/The comment file/i,
Expand Down Expand Up @@ -223,6 +222,7 @@ function applyNxDependentConfig(
};

if (!options?.skipTypeChecking) {
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
plugins.push(
new ForkTsCheckerWebpackPlugin({
typescript: {
Expand Down

0 comments on commit bf62661

Please sign in to comment.