fix: Client development build performance (#31390)

## Description
Dev mode performance:
- Disabled background tape checks for dev builds briefly.
- Configured caching for dev mode
- Added TS exclude paths

Timings: 
before:  build ~ 120 sec, recompile ~ 115 sec
after: build ~ 16 sec, recompile ~ 8 sec
This commit is contained in:
Valera Melnikov 2024-03-04 10:52:06 +03:00 committed by GitHub
parent 8db4cd3872
commit a33362bd9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 5 deletions

View File

@ -17,6 +17,9 @@ module.exports = {
babel: {
plugins: ["babel-plugin-lodash"],
},
eslint: {
enable: false,
},
webpack: {
configure: {
resolve: {

View File

@ -7,11 +7,18 @@ module.exports = merge(common, {
client: {
overlay: {
warnings: false,
errors: false
}
}
errors: false,
},
},
},
optimization: {
minimize: false,
},
cache: {
type: "filesystem",
memoryCacheUnaffected: true,
},
experiments: {
cacheUnaffected: true,
},
});

View File

@ -17,7 +17,7 @@
],
"scripts": {
"analyze": "yarn cra-bundle-analyzer",
"start": "BROWSER=none EXTEND_ESLINT=true REACT_APP_ENVIRONMENT=DEVELOPMENT REACT_APP_CLIENT_LOG_LEVEL=debug HOST=dev.appsmith.com craco --max_old_space_size=7168 start",
"start": "BROWSER=none REACT_APP_ENVIRONMENT=DEVELOPMENT REACT_APP_CLIENT_LOG_LEVEL=debug HOST=dev.appsmith.com craco --max_old_space_size=4096 start",
"build": "./build.sh",
"build-airgap": "node download-assets.js && ./build.sh",
"build-local": "craco --max-old-space-size=4096 build --config craco.build.config.js",

View File

@ -35,5 +35,5 @@
"importsNotUsedAsValues": "error"
},
"include": ["./src/**/*", "./packages"],
"exclude": ["./packages/rts"]
"exclude": ["./packages/rts", "**/node_modules", "**/.*/"]
}