Turn on ForkTsCheckerWebpackPlugin in react admin
This commit is contained in:
parent
841692d14d
commit
0308873d79
|
@ -8,7 +8,7 @@ const CustomTemplatedPathPlugin = require( '@wordpress/custom-templated-path-web
|
||||||
const BundleAnalyzerPlugin = require( 'webpack-bundle-analyzer' )
|
const BundleAnalyzerPlugin = require( 'webpack-bundle-analyzer' )
|
||||||
.BundleAnalyzerPlugin;
|
.BundleAnalyzerPlugin;
|
||||||
const MomentTimezoneDataPlugin = require( 'moment-timezone-data-webpack-plugin' );
|
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
|
* Internal dependencies
|
||||||
|
@ -140,8 +140,7 @@ const webpackConfig = {
|
||||||
plugins: [
|
plugins: [
|
||||||
...styleConfig.plugins,
|
...styleConfig.plugins,
|
||||||
// Runs TypeScript type checker on a separate process.
|
// 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( {
|
new CustomTemplatedPathPlugin( {
|
||||||
modulename( outputPath, data ) {
|
modulename( outputPath, data ) {
|
||||||
const entryName = get( data, [ 'chunk', 'name' ] );
|
const entryName = get( data, [ 'chunk', 'name' ] );
|
||||||
|
|
Loading…
Reference in New Issue