Turn on ForkTsCheckerWebpackPlugin in react admin

This commit is contained in:
Chi-Hsuan Huang 2022-04-21 13:18:24 +08:00
parent 841692d14d
commit 0308873d79
1 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,7 @@ const CustomTemplatedPathPlugin = require( '@wordpress/custom-templated-path-web
const BundleAnalyzerPlugin = require( 'webpack-bundle-analyzer' )
.BundleAnalyzerPlugin;
const MomentTimezoneDataPlugin = require( 'moment-timezone-data-webpack-plugin' );
// const ForkTsCheckerWebpackPlugin = require( 'fork-ts-checker-webpack-plugin' );
const ForkTsCheckerWebpackPlugin = require( 'fork-ts-checker-webpack-plugin' );
/**
* Internal dependencies
@ -140,8 +140,7 @@ const webpackConfig = {
plugins: [
...styleConfig.plugins,
// Runs TypeScript type checker on a separate process.
// Disable TS checker for now as it will block all development until all type inconsistencies are fixed
// new ForkTsCheckerWebpackPlugin(),
new ForkTsCheckerWebpackPlugin(),
new CustomTemplatedPathPlugin( {
modulename( outputPath, data ) {
const entryName = get( data, [ 'chunk', 'name' ] );