mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
Add fast typechecker that works in parallel with dev build
This commit is contained in:
parent
df59996a13
commit
a6e51bccfc
4 changed files with 190 additions and 0 deletions
|
@ -2,6 +2,7 @@ const path = require('path');
|
|||
const process = require('process');
|
||||
const rspack = require('@rspack/core');
|
||||
const ReactRefreshPlugin = require('@rspack/plugin-react-refresh');
|
||||
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
||||
const { RsdoctorRspackPlugin } = require('@rsdoctor/rspack-plugin');
|
||||
|
||||
const pdfjsDistPath = path.dirname(require.resolve('pdfjs-dist/package.json'));
|
||||
|
@ -160,6 +161,8 @@ module.exports = (env, argv) => {
|
|||
plugins: [
|
||||
!prod && new ReactRefreshPlugin(),
|
||||
process.env.RSDOCTOR && new RsdoctorRspackPlugin({}),
|
||||
|
||||
new ForkTsCheckerWebpackPlugin(),
|
||||
|
||||
// new rspack.IgnorePlugin({
|
||||
// resourceRegExp: /osx-temperature-sensor/,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue